Documentation ¶
Index ¶
- Variables
- func DeepSearchInMap(m map[string]interface{}, paths ...string) map[string]interface{}
- func InsensitiviseMap(m map[string]interface{})
- func MergeStringMap(dest, src map[string]interface{})
- func ToMapStringInterface(src map[interface{}]interface{}) map[string]interface{}
- type FlatMap
- func (flat *FlatMap) Get(key string) interface{}
- func (flat *FlatMap) GetBool(key string) bool
- func (flat *FlatMap) GetDuration(key string) time.Duration
- func (flat *FlatMap) GetFloat64(key string) float64
- func (flat *FlatMap) GetInt(key string) int
- func (flat *FlatMap) GetInt64(key string) int64
- func (flat *FlatMap) GetSlice(key string) []interface{}
- func (flat *FlatMap) GetString(key string) string
- func (flat *FlatMap) GetStringMap(key string) map[string]interface{}
- func (flat *FlatMap) GetStringMapString(key string) map[string]string
- func (flat *FlatMap) GetStringMapStringSlice(key string) map[string][]string
- func (flat *FlatMap) GetStringSlice(key string) []string
- func (flat *FlatMap) GetTime(key string) time.Time
- func (flat *FlatMap) Load(content []byte, unmarshal Unmarshaller) error
- func (flat *FlatMap) Reset()
- func (flat *FlatMap) Set(key string, val interface{}) error
- func (flat *FlatMap) UnmarshalKey(key string, rawVal interface{}, tagName string) error
- type Unmarshaller
Constants ¶
This section is empty.
Variables ¶
var KeySpliter = "."
KeySpliter ...
Functions ¶
func DeepSearchInMap ¶
DeepSearchInMap deep search in map
func InsensitiviseMap ¶
func InsensitiviseMap(m map[string]interface{})
InsensitiviseMap insensitivise map
func MergeStringMap ¶
func MergeStringMap(dest, src map[string]interface{})
MergeStringMap merge two map
func ToMapStringInterface ¶
func ToMapStringInterface(src map[interface{}]interface{}) map[string]interface{}
ToMapStringInterface cast map[interface{}]interface{} to map[string]interface{}
Types ¶
type FlatMap ¶ added in v0.2.0
type FlatMap struct {
// contains filtered or unexported fields
}
FlatMap ...
func (*FlatMap) GetBool ¶ added in v0.2.0
GetBool returns the value associated with the key as a boolean.
func (*FlatMap) GetDuration ¶ added in v0.2.0
GetDuration returns the value associated with the key as a duration.
func (*FlatMap) GetFloat64 ¶ added in v0.2.0
GetFloat64 returns the value associated with the key as a float64.
func (*FlatMap) GetInt ¶ added in v0.2.0
GetInt returns the value associated with the key as an integer.
func (*FlatMap) GetInt64 ¶ added in v0.2.0
GetInt64 returns the value associated with the key as an integer.
func (*FlatMap) GetSlice ¶ added in v0.2.0
GetSlice returns the value associated with the key as a slice of strings.
func (*FlatMap) GetString ¶ added in v0.2.0
GetString returns the value associated with the key as a string.
func (*FlatMap) GetStringMap ¶ added in v0.2.0
GetStringMap returns the value associated with the key as a map of interfaces.
func (*FlatMap) GetStringMapString ¶ added in v0.2.0
GetStringMapString returns the value associated with the key as a map of strings.
func (*FlatMap) GetStringMapStringSlice ¶ added in v0.2.0
GetStringMapStringSlice returns the value associated with the key as a map to a slice of strings.
func (*FlatMap) GetStringSlice ¶ added in v0.2.0
GetStringSlice returns the value associated with the key as a slice of strings.
func (*FlatMap) GetTime ¶ added in v0.2.0
GetTime returns the value associated with the key as time.
func (*FlatMap) Load ¶ added in v0.2.0
func (flat *FlatMap) Load(content []byte, unmarshal Unmarshaller) error
Load ...
type Unmarshaller ¶ added in v0.2.0
Unmarshaller ...