Documentation ¶
Index ¶
- func ErrInvalidVarType(name string, ptr interface{}) error
- type Bool
- type Duration
- type Flag
- type Int
- type Int16
- type Int32
- type Looker
- type Mapper
- type MapperFunc
- func (m MapperFunc) GetBool(name string) (bool, bool)
- func (m MapperFunc) GetDuration(name string) (time.Duration, bool)
- func (m MapperFunc) GetInt(name string) (int, bool)
- func (m MapperFunc) GetInt16(name string) (int16, bool)
- func (m MapperFunc) GetInt32(name string) (int32, bool)
- func (m MapperFunc) GetString(name string) (string, bool)
- func (m MapperFunc) GetStringSlice(name string) ([]string, bool)
- func (m MapperFunc) GetUint(name string) (uint, bool)
- func (m MapperFunc) GetUint16(name string) (uint16, bool)
- func (m MapperFunc) GetUint32(name string) (uint32, bool)
- type String
- type StringSlice
- type Uint
- type Uint16
- type Uint32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrInvalidVarType ¶ added in v0.2.0
Types ¶
type Mapper ¶
type Mapper interface { Looker Parse() Var(v interface{}, name string, usage string, args ...interface{}) Mapper VarP(v interface{}, name string, short rune, usage string, args ...interface{}) Mapper }
func RegisterMapper ¶ added in v0.3.0
type MapperFunc ¶ added in v0.3.0
func (MapperFunc) GetBool ¶ added in v0.3.0
func (m MapperFunc) GetBool(name string) (bool, bool)
GetBool tries to find a field of a given name and return a bool
func (MapperFunc) GetDuration ¶ added in v0.3.0
func (m MapperFunc) GetDuration(name string) (time.Duration, bool)
GetDuration tries to find a field of a given name and return a time.Duration
func (MapperFunc) GetInt ¶ added in v0.10.2
func (m MapperFunc) GetInt(name string) (int, bool)
GetInt tries to find a field of a given name and return a int
func (MapperFunc) GetInt16 ¶ added in v0.3.0
func (m MapperFunc) GetInt16(name string) (int16, bool)
GetInt16 tries to find a field of a given name and return a int16
func (MapperFunc) GetInt32 ¶ added in v0.3.0
func (m MapperFunc) GetInt32(name string) (int32, bool)
GetInt32 tries to find a field of a given name and return a int32
func (MapperFunc) GetString ¶ added in v0.3.0
func (m MapperFunc) GetString(name string) (string, bool)
GetString tries to find a field of a given name and return a string
func (MapperFunc) GetStringSlice ¶ added in v0.10.3
func (m MapperFunc) GetStringSlice(name string) ([]string, bool)
GetStringSlice tries to find a field of a given name and return a []string
func (MapperFunc) GetUint ¶ added in v0.10.2
func (m MapperFunc) GetUint(name string) (uint, bool)
GetUint tries to find a field of a given name and return a uint
type StringSlice ¶ added in v0.10.3
StringSlice is a flag of type []string
Click to show internal directories.
Click to hide internal directories.