Documentation
¶
Overview ¶
Package jsontypes contains helper types used by the JSON and Cue decoders to facilitate more natural decoding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParsingDuration ¶
type ParsingDuration int64
ParsingDuration implements encoding/json.Unmarshaler, supporting both quoted strings that are parseable with time.ParseDuration, and integer nanoseconds if it's a number
func (*ParsingDuration) UnmarshalJSON ¶
func (p *ParsingDuration) UnmarshalJSON(b []byte) error
UnmarshalJSON implements encoding/json.Unmarshaler for ParsingDuration.
Click to show internal directories.
Click to hide internal directories.