package
0.0.1
Repository: https://github.com/monkeyisme/commontool.git
Documentation: pkg.go.dev

# Functions

Base64Decode 对数据进行 base64 解码.
Base64Encode 对数据进行 base64 编码.
ByteList2StringList 将srcbyte数组列表,转成字符串列表。.
Bytes2Str byte数组直接转成string对象,不发生内存copy.
BytesToInt byte转int.
CaclMD5 返回str内容对应md5值(16进制表示).
FilterEmptyString 过滤空字符串.
GbkToUtf8 GBK 转 UTF-8.
生成 md5 哈希.
GetMd5 对数据进行md5计算.
GetMD5 生成 md5 数字串.
GetRandomString 随机生成给定长度的字符串.
GetSha 对字符串进行sha1 计算.
GetSubstring 截取字符串 start 起点下标 length 需要截取的长度.
IndexItemInSlice 返回item在l中的位置,如果不存在返回-1。.
InterfaceToString 接口转string.
IntToBytes int转byte.
IsEqualByte 判断两个byte数组是否相等.
Json2String json对象转换为字符串.
SplitString 返回以partition分割的字符串数组.
string转[]byte无拷贝.
TrimSpaceAndFilterEmpty 将src中的元素去掉头尾空白字符,并丢弃空字符串。多用于配置文件处理。.
Uint82Str uint8数组直接转成string对象,不发生内存copy.
Utf8ToGbk UTF-8 转 GBK.

# Constants

No description provided by the author