package
0.0.0-20240327020957-e9dc38c610a6
Repository: https://github.com/mufe/golang-base.git
Documentation: pkg.go.dev
# Functions
任意进制转10进制.
No description provided by the author
以1024作为基数.
以1000作为基数.
BytesToString converts byte slice to string.
ChineseLess i < j.
get chinese pinyin number codeparam s must be chinese character with utf8 encoding.
convert chinese to pinyin.
convert chinese to pinyin.
No description provided by the author
No description provided by the author
10进制转任意进制.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GBK2UTF8 : transform GBK byte array into UTF8 string.
GenerateCashSN 生成流水号.
GenerateRandomBytes is used to generate random bytes of given size.
GenerateUUID is used to generate a random UUID.
Get3Code 3位随机数字.
Get4Code 4位随机数字.
Get6Code 6位随机数字.
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
获取随机字符串 length:字符串长度.
获取rpc服务(服务发现).
获取rpc服务(服务发现).
HaveChineseChar 包含中文.
InArray 数组是否包含某元素.
IntersectInt32 32位整形交集.
IntersectInt64 64位整形交集.
No description provided by the author
No description provided by the author
mysql in写法.
mysql in写法.
mysql in写法.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PhoneReplace4 手机号屏蔽,前三后四.
PhoneReplace6 手机号屏蔽,前三后二.
RemoveDupsInt 整形数组去重.
RemoveDupsInt32 整形32数组去重.
RemoveDupsInt64 整形64数组去重.
RemoveDupsInt64 整形64数组去重除0.
RemoveDupsString 字符串数组去重.
RemoveDupsUint 无符号整形数组去重.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StringToBytes converts string to byte slice.
UseTime 用于查看操作时间.
UTF82GBK : transform UTF8 rune into GBK byte array.
No description provided by the author
VerifyPhoneFormat 校验手机号.
No description provided by the author
# Structs
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