Documentation ¶
Index ¶
- Constants
- func IsDate(str string) bool
- type BestDay
- type Date
- func (in *Date) DeepCopy() *Date
- func (in *Date) DeepCopyInto(out *Date)
- func (d *Date) GetBSON() (interface{}, error)
- func (d Date) MarshalEasyJSON(w *jwriter.Writer)
- func (d Date) MarshalJSON() ([]byte, error)
- func (d Date) MarshalText() ([]byte, error)
- func (d *Date) Scan(raw interface{}) error
- func (d *Date) SetBSON(raw bson.Raw) error
- func (d Date) String() string
- func (d *Date) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (d *Date) UnmarshalJSON(data []byte) error
- func (d *Date) UnmarshalText(text []byte) error
- func (d Date) Value() (driver.Value, error)
Constants ¶
View Source
const ( // DateUSRepresentation represents a full-date as specified by RFC3339 // See: http://goo.gl/xXOvVd DateUSRepresentation = "2006-01-02" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BestDay ¶
type BestDay struct { // date Date Date `json:"date,omitempty"` // total seconds TotalSeconds float64 `json:"total_seconds,omitempty"` }
BestDay best day swagger:model best_day
func (*BestDay) MarshalBinary ¶
MarshalBinary interface implementation
func (*BestDay) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Date ¶
Date represents a date from the API
swagger:type date(us)
func (*Date) DeepCopyInto ¶
DeepCopyInto copies the reciever and writes its value into out.
func (Date) MarshalEasyJSON ¶
MarshalEasyJSON writes the Date to a easyjson.Writer
func (Date) MarshalJSON ¶
MarshalJSON returns the Date as JSON
func (Date) MarshalText ¶
MarshalText serializes this date type to string
func (*Date) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the Date from a easyjson.Lexer
func (*Date) UnmarshalJSON ¶
UnmarshalJSON sets the Date from JSON
func (*Date) UnmarshalText ¶
UnmarshalText parses a text representation into a date type
Click to show internal directories.
Click to hide internal directories.