Documentation ¶
Index ¶
- Variables
- type Hook
- type Opt
- func (x *Opt) AddHooks(hook ...Hook)
- func (x *Opt) F() *Opt
- func (x *Opt) False() bool
- func (x *Opt) Flip()
- 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(b bool) (e error)
- func (x *Opt) SetHooks(hook ...Hook)
- func (x *Opt) SetName(name string)
- func (x *Opt) String() string
- func (x *Opt) T() *Opt
- func (x *Opt) True() bool
- func (x *Opt) Type() interface{}
- func (x *Opt) UnmarshalJSON(data []byte) (e error)
Constants ¶
This section is empty.
Variables ¶
View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)
Functions ¶
This section is empty.
Types ¶
type Opt ¶
Opt stores an boolean configuration value
func (*Opt) GetMetadata ¶
GetMetadata returns the metadata of the opt type
func (*Opt) LoadInput ¶
LoadInput sets the value from a string (this is the same as the above but differs for Strings)
func (*Opt) MarshalJSON ¶
MarshalJSON returns the json representation of a Opt
func (*Opt) ReadInput ¶
ReadInput sets the value from a string. The value can be right up against the keyword or separated by a '='.
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 a Opt
Click to show internal directories.
Click to hide internal directories.