Documentation
¶
Overview ¶
* @Author: 2Kil * @Date: 2024-04-19 10:54:20 * @LastEditors: 2Kil * @LastEditTime: 2024-05-29 11:35:57 * @Description:tktar
Index ¶
- func BuildTime() string
- func CheckErr(err error, errString ...string) bool
- func HelperRemoveDuplicates(s []string) []string
- func IsDebug() bool
- func RandAtomic(max int) int
- func RandAtomicRadius(min, max int) int
- func SysGetSerialKey() string
- func TextAesDecrypt(cipherText, key string) string
- func TextAesEncrypt(plainText, key string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckErr ¶
*
- @description: 错误检测
- @param {error} err 错误信息
- @param {string} errString 自定义错误提示
- @return {bool} 无错误true 有错误false
func HelperRemoveDuplicates ¶
*
- @description: 切片去重,去空
- @param {[]string} 待处理的切片
- @return {[]string} 处理后的切片
func IsDebug ¶
func IsDebug() bool
*
- @description: 判断当前环境是否为Debug模式
- @return {bool} true:Debug模式 false:Release模式
func RandAtomicRadius ¶
*
- @description: 生成范围内的随机数
- @param {int} min 最小值
- @param {int} max 最大值
- @return {int} 随机数
func TextAesDecrypt ¶
*
- @description: aes解密
- @param {string} 待解密的文本
- @param {string} 密钥
- @return {string} 明文
func TextAesEncrypt ¶
*
- @description: aes加密
- @param {string} 待加密的文本
- @param {string} 16,24,32密钥
- @return {string} 密文
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.