12 lines
170 B
Go
12 lines
170 B
Go
|
package models
|
||
|
|
||
|
type Psot struct {
|
||
|
Id string
|
||
|
Title string
|
||
|
Content string
|
||
|
}
|
||
|
|
||
|
func NewPost(id, title, content string) *Post {
|
||
|
return &Post{id, title, content}
|
||
|
}
|