Documentation ¶
Index ¶
- type Hook
- type Opt
- func (x *Opt) AddHooks(hook ...Hook)
- func (x *Opt) GetMetadata() *meta.Data
- func (x *Opt) Len() int
- 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) S() []string
- func (x *Opt) Set(ss []string) (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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt struct { meta.Data Value *atomic.Value Def []string // contains filtered or unexported fields }
Opt stores a string slice configuration value
func (*Opt) GetMetadata ¶
GetMetadata returns the metadata of the opt type
func (*Opt) LoadInput ¶
LoadInput sets the value from a string. For this opt this replacing the list
func (*Opt) MarshalJSON ¶
MarshalJSON returns the json representation of
func (*Opt) ReadInput ¶
ReadInput adds the value from a string. For this opt this means appending to the list
func (*Opt) Type ¶
func (x *Opt) Type() interface{}
Type returns the receiver wrapped in an interface for identifying its type
func (*Opt) UnmarshalJSON ¶
UnmarshalJSON decodes a JSON representation of
Click to show internal directories.
Click to hide internal directories.