21 lines
351 B
Go
21 lines
351 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Story struct {
|
|
Title string
|
|
Body string
|
|
Users []string
|
|
Tag int
|
|
Tasks []Task
|
|
Comments []Comment
|
|
Created time.Time
|
|
Updated time.Time
|
|
}
|
|
|
|
func MakeStory(title string) Story {
|
|
return Story{title,"", make([]string,0,2), -1, make([]Task,0,2), make([]Comment,0,2), time.Now(), time.Now()}
|
|
}
|