Documentation
¶
Index ¶
- func AesDeCrypt(content []byte) ([]byte, error)
- func AesEnCrypt(plainBytes []byte) []byte
- func FileHash(filePath string, h hash.Hash) (string, error)
- func FilterSymbol(src string) string
- func GeneratePrivateIp(input string) string
- func InArrayInt64(src int64, target []int64) bool
- func InArrayString(src string, target []string) bool
- func InArrayUint64(src uint64, target []uint64) bool
- func IsEmpty(val any) bool
- func IsPrivateIp(ipString string) bool
- func Md5EnCrypt(data string) string
- func PKCS7Padding(data []byte, blockSize int) []byte
- func Random(l int, t int) string
- func RandomImei(prefix string) string
- func RandomMeid(prefix string) string
- func TernaryIf[T any](condition bool, trueValue, falseValue T) T
- func TernaryIfFunc[T any](condition bool, trueValue, falseValue func() T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePrivateIp ¶
GeneratePrivateIp @Description: 通过字符串生成固定内网IP
func InArrayInt64 ¶
InArrayInt64 @Description: 判断int64是否在数组内
func InArrayString ¶
InArrayString @Description: 判断字符串是否在数组内
func InArrayUint64 ¶
InArrayUint64 @Description: 判断uint64是否在数组内
func PKCS7Padding ¶
PKCS7Padding @Description: 添加PKCS7填充
func TernaryIfFunc ¶
TernaryIfFunc @Description: 三元表达式-返回方法
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.