Documentation ¶
Index ¶
- Variables
- func DecoderConfig(config *mapstructure.DecoderConfig)
- type DecoderConfigOption
- type Map
- func (this *Map) Del(key ...interface{})
- func (this Map) Get(key interface{}) (value interface{}, ok bool)
- func (this *Map) GetDel(key interface{}) (value interface{}, ok bool)
- func (this Map) GetString(key interface{}, defaul ...string) (value string)
- func (this *Map) Has(key ...interface{}) (ok bool)
- func (this *Map) HasOne(key ...interface{}) (ok bool)
- func (this *Map) Set(key interface{}, value interface{}) *Map
- func (this *Map) Update(m_ ...map[interface{}]interface{}) *Map
- func (this Map) Value(key interface{}) (value interface{})
- type MapSI
- func (this MapSI) AormDataType(dialect aorm.Dialector) string
- func (this MapSI) CopyTo(dest interface{}, opts ...DecoderConfigOption) error
- func (this MapSI) DeepCopy(dest interface{}, ...) (err error)
- func (this *MapSI) Del(key ...string)
- func (this MapSI) Find(pth ...string) (value interface{}, ok bool)
- func (this MapSI) Get(key string) (value interface{}, ok bool)
- func (this *MapSI) GetDel(key string) (value interface{}, ok bool)
- func (this *MapSI) GetMap(key string) (value Map, ok bool)
- func (this *MapSI) GetMapS(key string) (value MapSI, ok bool)
- func (this *MapSI) Getter() getters.Getter
- func (this MapSI) Has(key ...string) (ok bool)
- func (this *MapSI) HasOne(key ...string) (ok bool)
- func (this *MapSI) ReadKey(getter getters.Getter, key interface{}) (ok bool)
- func (this *MapSI) Scan(src interface{}) (err error)
- func (this *MapSI) Set(key string, value interface{}) *MapSI
- func (this MapSI) Unmarshal(rawVal interface{}, opts ...DecoderConfigOption) error
- func (this *MapSI) Update(m_ ...map[string]interface{}) *MapSI
- func (this MapSI) Value() (driver.Value, error)
- type MapSiSlice
- func (this *MapSiSlice) Append(m ...MapSI)
- func (this *MapSiSlice) AppendMap(m ...map[string]interface{})
- func (this MapSiSlice) Get(key string) (value interface{}, ok bool)
- func (this MapSiSlice) GetMap(key string) (value Map, ok bool)
- func (this MapSiSlice) GetMapS(key string) (value MapSI, ok bool)
- func (this MapSiSlice) Has(key string) (ok bool)
- type MapUnmarshaler
- type SyncedMap
- func (this *SyncedMap) Del(key ...interface{})
- func (this SyncedMap) Get(key interface{}) (value interface{}, ok bool)
- func (this SyncedMap) GetBool(key interface{}, defaul ...bool) bool
- func (this *SyncedMap) GetDel(key interface{}) (value interface{}, ok bool)
- func (this SyncedMap) GetInt(key interface{}, defaul ...int) int
- func (this SyncedMap) GetInterface(key string, defaul ...interface{}) interface{}
- func (this SyncedMap) GetSlice(key interface{}, defaul ...[]interface{}) (r []interface{})
- func (this SyncedMap) GetString(key interface{}, defaul ...string) string
- func (this SyncedMap) GetStrings(key interface{}, defaul ...[]string) (r []string)
- func (this SyncedMap) Has(key ...interface{}) bool
- func (this SyncedMap) MustGetInterface(key interface{}, defaul ...interface{}) interface{}
- func (this *SyncedMap) Set(key interface{}, value interface{}) *SyncedMap
- func (this *SyncedMap) Update(values ...map[string]interface{}) *SyncedMap
Constants ¶
This section is empty.
Variables ¶
View Source
var UnmarshalerType = reflect.TypeOf((*MapUnmarshaler)(nil)).Elem()
Functions ¶
func DecoderConfig ¶
func DecoderConfig(config *mapstructure.DecoderConfig)
Types ¶
type DecoderConfigOption ¶
type DecoderConfigOption func(*mapstructure.DecoderConfig)
A DecoderConfigOption can be passed to viper.Unmarshal to configure mapstructure.DecoderConfig options
func DecodeHook ¶
func DecodeHook(hook mapstructure.DecodeHookFunc) DecoderConfigOption
DecodeHook returns a DecoderConfigOption which overrides the default DecoderConfig.DecodeHook value, the default is:
mapstructure.ComposeDecodeHookFunc( mapstructure.StringToTimeDurationHookFunc(), mapstructure.StringToSliceHookFunc(","), )
type MapSI ¶
type MapSI map[string]interface{}
func (MapSI) CopyTo ¶
func (this MapSI) CopyTo(dest interface{}, opts ...DecoderConfigOption) error
CopyTo copy the config into a Struct. Make sure that the tags on the fields of the structure are properly set.
func (MapSI) DeepCopy ¶
func (this MapSI) DeepCopy(dest interface{}, cb ...func(m MapSI, key string, value interface{}) (interface{}, error)) (err error)
DeepCopyTo deep copy the config into a dest.
func (MapSI) Unmarshal ¶
func (this MapSI) Unmarshal(rawVal interface{}, opts ...DecoderConfigOption) error
Unmarshal unmarshals the config into a Struct. Make sure that the tags on the fields of the structure are properly set.
type MapSiSlice ¶
type MapSiSlice []MapSI
func (*MapSiSlice) Append ¶
func (this *MapSiSlice) Append(m ...MapSI)
func (*MapSiSlice) AppendMap ¶
func (this *MapSiSlice) AppendMap(m ...map[string]interface{})
func (MapSiSlice) Get ¶
func (this MapSiSlice) Get(key string) (value interface{}, ok bool)
func (MapSiSlice) Has ¶
func (this MapSiSlice) Has(key string) (ok bool)
type MapUnmarshaler ¶
type MapUnmarshaler interface {
UnmarshalMap(value interface{}) (err error)
}
type SyncedMap ¶
type SyncedMap struct { Data Map // contains filtered or unexported fields }
func (SyncedMap) GetInterface ¶
func (SyncedMap) GetSlice ¶
func (this SyncedMap) GetSlice(key interface{}, defaul ...[]interface{}) (r []interface{})
func (SyncedMap) GetStrings ¶
func (SyncedMap) MustGetInterface ¶
func (this SyncedMap) MustGetInterface(key interface{}, defaul ...interface{}) interface{}
Click to show internal directories.
Click to hide internal directories.