Versions in this module Expand all Collapse all v0 v0.1.17 Aug 14, 2022 v0.1.16 Aug 13, 2022 Changes in this version + type Hook func(i int) error + type Opt struct + Def int64 + Max int + Min int + Value *atomic.Int64 + func New(m meta.Data, def int64, min, max int, 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(i int) (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() int