Pracownia.Programowania/models/post.go
2018-12-11 20:42:44 +01:00

12 lines
170 B
Go

package models
type Post struct {
Id string
Title string
Content string
}
func NewPost(id, title, content string) *Post {
return &Post{id, title, content}
}