Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExpectedJson = errors.New("unexpected type date.Date in json format")
Functions ¶
This section is empty.
Types ¶
type Date ¶
type Date struct {
// safe between 0 to 32767
// but should be 1000 to 9999
Year uint16 `json:"year"`
// safe between 0 to 255
// but should be 0 to 12
Month uint8 `json:"month"`
// safe between 0 to 255
// but should be 0 to 31
Day uint8 `json:"day"`
}
func (*Date) MarshalJSON ¶
func (*Date) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.