tkstar

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

README

TkStar

assignment to entry in nil map

Documentation

Overview

* @Author: 2Kil * @Date: 2024-04-19 10:54:20 * @LastEditors: 2Kil * @LastEditTime: 2024-05-29 12:41:28 * @Description:tktar

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTime

func BuildTime() string

*

  • @description: 输出编译时间
  • @return {string} 当前文件编译时间

func CheckErr

func CheckErr(err error, errString ...string) bool

*

  • @description: 错误检测
  • @param {error} err 错误信息
  • @param {string} errString 自定义错误提示
  • @return {bool} 无错误true 有错误false

func HelperRemoveDuplicates

func HelperRemoveDuplicates(s []string) []string

*

  • @description: 切片去重,去空
  • @param {[]string} 待处理的切片
  • @return {[]string} 处理后的切片

func IsDebug

func IsDebug() bool

*

  • @description: 判断当前环境是否为Debug模式
  • @return {bool} true:Debug模式 false:Release模式

func RandAtomic

func RandAtomic(max int) int

*

  • @description: 生成随机数
  • @param {int} max 最大值
  • @return {int} 随机数

func RandAtomicRadius

func RandAtomicRadius(min, max int) int

*

  • @description: 生成范围内的随机数
  • @param {int} min 最小值
  • @param {int} max 最大值
  • @return {int} 随机数

func SysGetSerialKey

func SysGetSerialKey() string

*

  • @description: 获取设备硬件码
  • @return {string} 硬件码

func TextAesDecrypt

func TextAesDecrypt(cipherText, key string) string

*

  • @description: aes解密
  • @param {string} 待解密的文本
  • @param {string} 密钥
  • @return {string} 明文

func TextAesEncrypt

func TextAesEncrypt(plainText, key string) string

*

  • @description: aes加密
  • @param {string} 待加密的文本
  • @param {string} 16,24,32密钥
  • @return {string} 密文

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL