Documentation ¶
Index ¶
- func GetByPath(key string, mp map[string]interface{}) (val interface{}, ok bool)
- func HttpQueryString(data map[string]interface{}) string
- func KeyToLower(src map[string]string) map[string]string
- func Keys(mp interface{}) (keys []string)
- func MergeStringMap(src, dst map[string]string, ignoreCase bool) map[string]string
- func ToStringMap(src map[string]interface{}) map[string]string
- func Values(mp interface{}) (values []interface{})
- type Aliases
- type Data
- func (d Data) Bool(key string) bool
- func (d Data) Default(key string, def interface{}) interface{}
- func (d Data) Get(key string) interface{}
- func (d Data) Has(key string) bool
- func (d Data) Int(key string) int
- func (d Data) Int64(key string) int64
- func (d Data) Set(key string, val interface{})
- func (d Data) Str(key string) string
- func (d Data) String() string
- func (d Data) StringMap() map[string]string
- type SMap
- func (m SMap) Bool(key string) bool
- func (m SMap) Has(key string) bool
- func (m SMap) HasValue(val string) bool
- func (m SMap) Int(key string) int
- func (m SMap) Int64(key string) int64
- func (m SMap) Ints(key string) []int
- func (m SMap) Str(key string) string
- func (m SMap) String() string
- func (m SMap) Strings(key string) (ss []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpQueryString ¶ added in v0.3.9
HttpQueryString convert map[string]interface{} data to http query string.
func KeyToLower ¶
KeyToLower convert keys to lower case.
func MergeStringMap ¶
MergeStringMap simple merge two string map. merge src to dst map
func ToStringMap ¶ added in v0.3.9
ToStringMap convert map[string]interface{} to map[string]string
Types ¶
type Aliases ¶ added in v0.3.9
Aliases implemented an simple string alias map.
func (Aliases) AddAliasMap ¶ added in v0.3.9
AddAliasMap to the Aliases
func (Aliases) AddAliases ¶ added in v0.3.9
AddAliases to the Aliases
func (Aliases) ResolveAlias ¶ added in v0.3.9
ResolveAlias by given name.
type Data ¶ added in v0.3.9
type Data map[string]interface{}
Data an map data type
Click to show internal directories.
Click to hide internal directories.