Documentation ¶
Overview ¶
Package timejson extends time methods with marshal/unmarshal for json
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration is an alias to time.Duration Implementation taken from https://stackoverflow.com/questions/48050945/how-to-unmarshal-json-into-durations
func (Duration) MarshalJSON ¶
MarshalJSON converts a duration to json
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON converts json to a duration
Click to show internal directories.
Click to hide internal directories.