Versions in this module Expand all Collapse all v0 v0.0.21 Sep 1, 2021 Changes in this version + type Hook func(d time.Duration) error + type Opt struct + Def time.Duration + Max time.Duration + Min time.Duration + Value *uberatomic.Duration + func New(m meta.Data, def time.Duration, min, max time.Duration, hook ...Hook) *Opt + func (x *Opt) AddHooks(hook ...Hook) + func (x *Opt) GetMetadata() *meta.Data + func (x *Opt) LoadInput(input string) (o opt.Option, e error) + func (x *Opt) MarshalJSON() (b []byte, e error) + func (x *Opt) Name() string + func (x *Opt) ReadInput(input string) (o opt.Option, e error) + func (x *Opt) Set(d time.Duration) (e error) + func (x *Opt) SetHooks(hook ...Hook) + func (x *Opt) SetName(name string) + func (x *Opt) String() string + func (x *Opt) Type() interface{} + func (x *Opt) UnmarshalJSON(data []byte) (e error) + func (x *Opt) V() time.Duration