Documentation ¶
Overview ¶
This file was generated using gen.pl and go fmt.
dict is a helper function that allow one to easily get concreate values out of a map[string]interface{}
Index ¶
- type M
- func (m M) Dict(key string) (v M, err error)
- func (m M) Int(key string, def *int) (v int, err error)
- func (m M) Int16(key string, def *int16) (v int16, err error)
- func (m M) Int16Slice(key string) (v []int16, err error)
- func (m M) Int32(key string, def *int32) (v int32, err error)
- func (m M) Int32Slice(key string) (v []int32, err error)
- func (m M) Int64(key string, def *int64) (v int64, err error)
- func (m M) Int64Slice(key string) (v []int64, err error)
- func (m M) Int8(key string, def *int8) (v int8, err error)
- func (m M) Int8Slice(key string) (v []int8, err error)
- func (m M) IntSlice(key string) (v []int, err error)
- func (m M) String(key string, def *string) (v string, err error)
- func (m M) StringSlice(key string) (v []string, err error)
- func (m M) Uint(key string, def *uint) (v uint, err error)
- func (m M) Uint16(key string, def *uint16) (v uint16, err error)
- func (m M) Uint16Slice(key string) (v []uint16, err error)
- func (m M) Uint32(key string, def *uint32) (v uint32, err error)
- func (m M) Uint32Slice(key string) (v []uint32, err error)
- func (m M) Uint64(key string, def *uint64) (v uint64, err error)
- func (m M) Uint64Slice(key string) (v []uint64, err error)
- func (m M) Uint8(key string, def *uint8) (v uint8, err error)
- func (m M) Uint8Slice(key string) (v []uint8, err error)
- func (m M) UintSlice(key string) (v []uint, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type M ¶
type M map[string]interface{}
func (M) Int ¶
Int returns the value as a int type, if it is unable to convert the value it will error. If the default value is not provided, and it can not find the value, it will return the zero value, and an error.
func (M) Int16 ¶
Int16 returns the value as a int16 type, if it is unable to convert the value it will error. If the default value is not provided, and it can not find the value, it will return the zero value, and an error.
func (M) Int32 ¶
Int32 returns the value as a int32 type, if it is unable to convert the value it will error. If the default value is not provided, and it can not find the value, it will return the zero value, and an error.
func (M) Int64 ¶
Int64 returns the value as a int64 type, if it is unable to convert the value it will error. If the default value is not provided, and it can not find the value, it will return the zero value, and an error.
func (M) Int8 ¶
Int8 returns the value as a int8 type, if it is unable to convert the value it will error. If the default value is not provided, and it can not find the value, it will return the zero value, and an error.
func (M) String ¶
String returns the value as a string type, if it is unable to convert the value it will error. If the default value is not provided, and it can not find the value, it will return the zero value, and an error.
func (M) Uint ¶
Uint returns the value as a uint type, if it is unable to convert the value it will error. If the default value is not provided, and it can not find the value, it will return the zero value, and an error.
func (M) Uint16 ¶
Uint16 returns the value as a uint16 type, if it is unable to convert the value it will error. If the default value is not provided, and it can not find the value, it will return the zero value, and an error.
func (M) Uint32 ¶
Uint32 returns the value as a uint32 type, if it is unable to convert the value it will error. If the default value is not provided, and it can not find the value, it will return the zero value, and an error.
func (M) Uint64 ¶
Uint64 returns the value as a uint64 type, if it is unable to convert the value it will error. If the default value is not provided, and it can not find the value, it will return the zero value, and an error.