# Functions
Any2XML 将任意类型转换为xml.
BytesToString converts byte slice to string without a memory allocation.
DecodeBool 判断变量的值与指定相等时设置为另一个值,否则使用原值.
DecodeInt 判断变量的值与指定相等时设置为另一个值,否则使用原值.
DecodeString 判断变量的值与指定相等时设置为另一个值,否则使用原值.
DeepCopy 深拷贝.
DeepCopyByGob 通过gob对对象进行深拷贝.
GetBool 获取bool类型值,表示为true的值有:1, t, T, true, TRUE, True, YES, yes, Yes, Y, y, ON, on, On.
GetBoolByIndex 获取数组中的指定元素.
GetCascade 根据key将值转换为map[string]ineterface{}.
GetDatetime 获取时间.
GetDecimal 获取float64数据,不是有效的数字则返回默然值或0.
GetDecimalByIndex 获取数组中的指定元素.
GetErrorByIndex 获取数组中的指定元素.
GetFirst 获取数组中获取首个元素.
GetFloat32 获取float32数据,不是有效的数字则返回默然值或0.
GetFloat32ByIndex 获取数组中的指定元素.
GetFloat64 获取float64数据,不是有效的数字则返回默然值或0.
GetFloat64ByIndex 获取数组中的指定元素.
GetInt 获取int数据,不是有效的数字则返回默然值或0.
GetInt32 获取int32数据,不是有效的数字则返回默然值或0.
GetInt32ByIndex 获取数组中的指定元素.
GetInt64 获取int64数据,不是有效的数字则返回默然值或0.
GetInt64ByIndex 获取数组中的指定元素.
GetIntByIndex 获取数组中的指定元素.
GetMax 获取指定参数的最大值.
GetMin 获取指定参数的最小值.
GetString 获取字符串.
GetStringByIndex 获取数组中的指定元素.
IntContains int数组中是否包含指定值.
IsEmpty 值是否为空.
IToMap struct类型转map[string]interface{}.
Map2Struct 将map转换为struct.
Maps2Structs 将map转换为struct.
MustBool 获取bool值,不是有效bool值则返回false.
MustFloat32 获取float32,不是有效的数字则返回false.
MustFloat64 获取float64,不是有效的数字则返回false.
MustInt 获取int,不是有效的数字则返回false.
MustInt32 获取int32,不是有效的数字则返回false.
MustInt64 获取int64,不是有效的数字则返回false.
MustString 获取字符串,不是字符串格式则返回false.
NewDateTime 构建新的DateTime.
NewXMap 构建xmap对象.
NewXMapByJSON 根据json创建XMap.
NewXMapByMap 根据map[string]interface{}构建xmap.
NewXMapBySMap 根据map[string]string构建xmap.
NewXMapByXML 将xml转换为xmap.
NewXMaps 构建xmap对象.
NewXMapsByJSON 根据json创建XMaps.
ParseBool 将字符串转换为bool值.
SetArray 设置数组的值.
SetSlice 设置slice的值.
SetWithProperType 设置字段的值.
Split 拆分字符串,当输入字符串为空时返回结果为空.
No description provided by the author
StringContains string数组中是否包含指定值.
StringToBytes converts string to byte slice without a memory allocation.
Struct2Map 将struct 转换成map[string]interface{}.
ToJSON 转换为json.
Translate 翻译带参数的变量支持格式有 @abc,{@abc}.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author