Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rfc2822Time ¶
Rfc2822Time is meant to allow access to time.Time but successfully parse the RFC 2822 date format into a struct easily.
func (Rfc2822Time) MarshalJSON ¶
func (t Rfc2822Time) MarshalJSON() ([]byte, error)
MarshalJSON handles converting a Rfc2822Time struct into the proper string representation when being serialized to JSON.
func (*Rfc2822Time) String ¶
func (t *Rfc2822Time) String() string
func (*Rfc2822Time) UnmarshalJSON ¶
func (t *Rfc2822Time) UnmarshalJSON(b []byte) error
UnmarshalJSON handles converting a string that is hopefully in the RFC 2822 date format into a usable struct with access to the time.Time functions.
Click to show internal directories.
Click to hide internal directories.