You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
481 B

package main
import "time"
type remind struct {
ID int `json:"id"`
Title string `json:"title"`
DateTime time.Time `json:"datetime"`
Content string `json:"content"`
}
var remindList = []remind{
remind{ID: 1, Title: "Remind 1", DateTime: time.Now(), Content: "Remind 1 body"},
remind{ID: 2, Title: "Remind 2", DateTime: time.Now(), Content: "Remind 2 body"},
}
// Return a list of all the articles
func getAllReminds() []remind {
return remindList
}