package
0.0.0-20240109133218-bbbe29898a12
Repository: https://github.com/scliangx/webservertools.git
Documentation: pkg.go.dev
# Functions
AesDecrypt 解密.
AesEncrypt 加密.
Base64Md5 先base64,然后MD5.
BytesToFloat64 converts []byte to float64.
BytesToInt converts []byte to integer.
BytesToInt64 converts []bytes to int64.
CamelCase very_important_person => VeryImportantPerson.
Decrypt 解密.
DecryptByAes base64解码后 Aes 解密.
Encrypt 加密.
EncryptByAes Aes加密 后 base64.
Float64ToStr converts float64 to string.
GetAllFile 根据前缀获取文件.
IntToStr converts integer to string.
No description provided by the author
PathExists 文件是否存在.
PrivateDecrypt 私钥解密.
PublicEncrypt 公钥加密.
RandString random string.
RoundedFixed 小数点后 n 位 - 四舍五入.
No description provided by the author
SnakeString XxYy to xx_yy.
StringsJoin string array join.
No description provided by the author
No description provided by the author
StrToFloat64 converts string to float64.
StrToInt converts string to integer.
StrToInt64 converts string to int64.
StrToUint64 converts string to the unsinged int64.
TimeTransDate 时间戳转换成年月日.
No description provided by the author
TruncRound 小数点后 n 位 - 舍去.
No description provided by the author
# Variables
16,24,32位字符串的话,分别对应AES-128,AES-192,AES-256 加密方法key不能泄露.