Pracownia.Programowania/models/post.go
2018-12-22 20:04:32 +01:00

13 lines
232 B
Go

package models
type Post struct {
Id string
Title string
ContentHtml string
ContentMd string
}
func NewPost(id, title, contentHtml, contentMd string) *Post {
return &Post{id, title, contentHtml, contentMd}
}