Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration is a wrapper type that parses time duration from text.
func NewDuration ¶
NewDuration returns Duration wrapper
func (Duration) JSONSchema ¶
func (Duration) JSONSchema() *jsonschema.Schema
JSONSchema returns a custom schema to be used for the JSON Schema generation of this type
func (*Duration) UnmarshalText ¶
UnmarshalText unmarshalls time duration from text.
Click to show internal directories.
Click to hide internal directories.