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 }