Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration with several helpful helpers
func NewDuration ¶
NewDuration returns a new Duration instance
func (Duration) IsPositive ¶
IsPositive returns true if the duration is > 0ns
func (*Duration) MarshalJSON ¶
MarshalJSON implements the JSON Marshaller interface
func (Duration) TimeDuration ¶
TimeDuration converts a Duration to a golang time.Duration
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON implements the JSON Unmarshaller interface. Expects golang duration strings such as "1ms", "5s", etc.
Click to show internal directories.
Click to hide internal directories.