Documentation
¶
Index ¶
- func DateMarshalIntUnix(enc *jsontext.Encoder, d civil.Date) error
- func DateUnmarshalIntUnix(dec *jsontext.Decoder, d *civil.Date) error
- func DurationMarshalIntSeconds(enc *jsontext.Encoder, d time.Duration) error
- func DurationUnmarshalIntSeconds(dec *jsontext.Decoder, d *time.Duration) error
- func TimeMarshalIntUnix(enc *jsontext.Encoder, t time.Time) error
- func TimeUnmarshalIntUnix(dec *jsontext.Decoder, d *time.Time) error
- func URLMarshal(enc *jsontext.Encoder, u url.URL) error
- func URLUnmarshal(dec *jsontext.Decoder, u *url.URL) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateMarshalIntUnix ¶
DateMarshalIntUnix is a custom marshaler for civil.Date, marshaling them as integers representing unix time.
func DateUnmarshalIntUnix ¶
DateUnmarshalIntUnix is a custom unmarshaler for civil.Date, unmarshaling them from integers and assuming they represent unix time.
func DurationMarshalIntSeconds ¶
DurationMarshalIntSeconds is a custom marshaler for time.Duration, marshaling them as integers representing seconds.
func DurationUnmarshalIntSeconds ¶
DurationUnmarshalIntSeconds is a custom unmarshaler for time.Duration, unmarshaling them from integers and assuming they represent seconds.
func TimeMarshalIntUnix ¶
TimeMarshalIntUnix is a custom marshaler for time.Time, marshaling them as integers representing unix time.
func TimeUnmarshalIntUnix ¶
TimeUnmarshalIntUnix is a custom unmarshaler for time.Time, unmarshaling them from integers and assuming they represent unix time.
func URLMarshal ¶
URLMarshal is a custom marshaler for URL values, marshaling them as strings.
Types ¶
This section is empty.