# README
Getting Started with parse
parse.Convert
Generic Type Conversion
// Number 0, convert to bool, default to false if conversion fails
result := Convert(0, false)
// Number 1, convert to string, default to "" if conversion fails
result := Convert(1, "")
// Number 1, convert to int64, fail to convert then default to int64(0)
result := Convert(1, int64(0))
// string true, convert to bool, default to false if conversion fails
result := Convert("true", false)
// string 123, convert to int, default to 0 if conversion fails
result := Convert("123", 0)
parse.IsEqual
checkAny is Equal
var a any = true
var b any = true
IsEqual(a, b) // return true
var a any = 1
var b any = 1
IsEqual(a, b) // return true
var a any = "steden1"
var b any = "steden2"
IsEqual(a, b) // return false
# Functions
Convert 通用的类型转换.
ConvertValue 通用的类型转换.
No description provided by the author
HashCode 获取哈希值.
HashCode64 获取哈希值.
HashCodes 获取哈希值.
IsEqual 比较两个值是否相等.
No description provided by the author
RandString 随机字符串.
No description provided by the author
ToBool 转换成bool类型.
ToFloat32 转换成float32类型.
ToFloat64 转换成float64类型.
ToInt 转换成int类型.
ToInt16 转换成int16类型.
ToInt32 转换成int32类型.
ToInt64 转换成int64类型.
ToInt8 转换成int8类型.
ToString 转换成string类型.
ToTime 转换成time.Time类型.
ToUInt 转换成int64类型.
ToUInt16 转换成uint16类型.
ToUInt32 转换成uint32类型.
ToUInt64 转换成uint64类型.
ToUInt8 转换成uint8类型.