Pracownia.Programowania/models/post.go

12 lines
170 B
Go
Raw Normal View History

2018-12-10 19:42:28 +01:00
package models
2018-12-11 20:42:44 +01:00
type Post struct {
2018-12-10 19:42:28 +01:00
Id string
Title string
Content string
}
func NewPost(id, title, content string) *Post {
return &Post{id, title, content}
}