Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DateRequest ¶
type DateRequest struct {
After time.Time `schema:"after"`
Before time.Time `schema:"before"`
Group data.DateGroup `schema:"group"`
}
GET date request URL parameters
type DateResponse ¶
type DateResponse struct {
Day int `json:"day"`
Month int `json:"month"`
Year int `json:"year"`
Trivia string `json:"trivia"`
}
GET date request response body
func (*DateResponse) FromDate ¶
func (DateResponse *DateResponse) FromDate(date data.Date)
update date response using date
Click to show internal directories.
Click to hide internal directories.