Documentation ¶
Index ¶
- Variables
- func BytesContain(ele byte, b []byte) bool
- func BytesToString(b []byte) string
- func DeepClone(v interface{}) interface{}
- func DeepCopy(dst, src interface{})
- func Interface2Map(data interface{}) (result map[string]interface{})
- func String(n int) string
- type Param
- func (p Param) Add(key string, value interface{})
- func (p Param) Delete(key string) (ok bool)
- func (p Param) Get(key string) (value interface{}, ok bool)
- func (p Param) GetInt64(key string) (n int64, err error)
- func (p Param) GetString(key string) (string, error)
- func (p Param) Range(fn func(key string, value interface{}) (breakOut bool))
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFoundKey = errors.New("not found key") ErrType = errors.New("error type") )
Functions ¶
func BytesContain ¶
func BytesToString ¶
func Interface2Map ¶
func Interface2Map(data interface{}) (result map[string]interface{})
Interface2Map 将嵌套的map[string]interface全部转换成一层
Types ¶
Click to show internal directories.
Click to hide internal directories.