Versions in this module Expand all Collapse all v0 v0.0.21 Sep 1, 2021 Changes in this version + type Hook func(s []byte) error + type Opt struct + Def string + Value *atomic.Value + func New(m meta.Data, def string, hook ...Hook) *Opt + func (x *Opt) AddHooks(hook ...Hook) + func (x *Opt) Bytes() []byte + func (x *Opt) Empty() bool + 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(s string) (e error) + func (x *Opt) SetBytes(s []byte) (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() string + func (x *Opt) Zero()