Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Date ¶ added in v1.1.0
func (Date) MarshalJSON ¶ added in v1.1.0
func (*Date) UnmarshalJSON ¶ added in v1.1.0
type DateRange ¶
type DateRange struct { // Beg // @title Beg // @description `2006-01-01` Beg Date `json:"beg"` // End // @title End // @description `2006-01-01` End Date `json:"end"` }
DateRange @title DateRange @description `['2006-01-01', '2006-01-01')`
func NewDateRange ¶ added in v0.14.0
type Time ¶ added in v1.1.0
func (Time) MarshalJSON ¶ added in v1.1.0
func (*Time) UnmarshalJSON ¶ added in v1.1.0
type TimeRange ¶
type TimeRange struct { // Beg // @title Beg // @description `2006-01-01T15:04:06Z` Beg time.Time `json:"beg"` // End // @title End // @description `2006-01-01T15:04:06Z` End time.Time `json:"end"` }
TimeRange @title TimeRange @description `['2006-01-01T15:04:06Z', '2006-01-01T15:04:06Z')`
func NewTimeRange ¶ added in v0.14.0
Click to show internal directories.
Click to hide internal directories.