Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrInvalidDateFormatYYYYMMDD ¶
type ErrInvalidDateFormatYYYYMMDD error
ErrInvalidDateFormatYYYYMMDD is returned when the field cannot be parsed.
type ErrInvalidDateFormatYYYYMMDDHHMMSS ¶
type ErrInvalidDateFormatYYYYMMDDHHMMSS error
ErrInvalidDateFormatYYYYMMDDHHMMSS is returned when the field cannot be parsed.
type YYYYMMDD ¶
YYYYMMDD provides a year, month and day type.
func (YYYYMMDD) MarshalJSON ¶
MarshalJSON outputs JSON.
func (YYYYMMDD) String ¶
String // String returns the time formatted using the format string
"2006-01-02 15:04:05.999999999 -0700 MST"
If the time has a monotonic clock reading, the returned string includes a final field "m=±<value>", where value is the monotonic clock reading formatted as a decimal number of seconds.
The returned string is meant for debugging; for a stable serialized representation, use t.MarshalText, t.MarshalBinary, or t.Format with an explicit format string.
func (*YYYYMMDD) UnmarshalJSON ¶
UnmarshalJSON handles incoming JSON.
type YYYYMMDDHHMMSS ¶
YYYYMMDDHHMMSS provides a yyyy-MM-ddThh:mm:ss date.
func (YYYYMMDDHHMMSS) MarshalJSON ¶
func (d YYYYMMDDHHMMSS) MarshalJSON() ([]byte, error)
MarshalJSON outputs JSON.
func (YYYYMMDDHHMMSS) String ¶
func (d YYYYMMDDHHMMSS) String() string
String // String returns the time formatted using the format string
"2006-01-02 15:04:05.999999999 -0700 MST"
If the time has a monotonic clock reading, the returned string includes a final field "m=±<value>", where value is the monotonic clock reading formatted as a decimal number of seconds.
The returned string is meant for debugging; for a stable serialized representation, use t.MarshalText, t.MarshalBinary, or t.Format with an explicit format string.
func (*YYYYMMDDHHMMSS) UnmarshalJSON ¶
func (d *YYYYMMDDHHMMSS) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON handles incoming JSON.