package
1.5.4
Repository: https://github.com/yuanjewel/go-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AesDecrypt 解密.
AesEncrypt 加密 key 的长度最少为16位 最好是16/24/32 位.
Base64Decode base64 解密.
Base64Encode base64 加密.
No description provided by the author
No description provided by the author
CstTimeToTimestampUnix 2006-01-02 15:04:05 类型的 字符串转换成 timestamp, 从 1790 timestamp 是指格林威治时间1970年01月01日00时00分00秒 (北京时间1970年01月01日08时00分00秒)起至现在的总秒数。 时间需要是 UTC 时间.
CstTimeToTimestampUnixMilli 时间戳转化为 时间字符串 转化后的格式为 2006-01-02 15:04:05 2006-01-02 15:04:05 类型的 字符串转换成 timestamp 毫秒数 时间需要是 CTS 时间 , UTC+8的时间.
FileExists 判断文件是否存在.
GenerateUuid 生成8位由数字字母组成的字符串.
GetAllFile 遍历文件夹获取所有文件.
HourToFullFmt 输入: 15:04 要求输出 : 2006-01-02T15:04:05.000Z.
No description provided by the author
MapSliceToStructSlice 将 []map 转换为 []struct,并直接修改传入的切片.
MapToStruct 将单个 map 转换为 struct.
NowUtc 当前 UTC 时间的字符串 2006.01.02 15:04:05-0700.
PKCS7Padding 补码.
PKCS7UnPadding 去码.
No description provided by the author
RemoveRepByMap slice去重.
TimeParseYYYYMMDD 2006-01-02 类型的 字符串转换成 time.TIme.
TimeparseyyyyMmDdHhmmsslayout 2006-01-02 15:04:05 类型的 字符串转换成 time.TIme 时间需要是Utc 时间.
TimestampToTime 时间戳转化为时间 time.Time.
TimeToTimestampUnix 2006-01-02 15:04:05 类型的 字符串转换成 timestamp, 从 1790 timestamp 是指格林威治时间1970年01月01日00时00分00秒 (北京时间1970年01月01日08时00分00秒)起至现在的总秒数。 时间需要是 UTC 时间.
TimeToTimestampUnixMilli 2006-01-02 15:04:05 类型的 字符串转换成 timestamp 毫秒数 时间需要是 UTC 时间.
No description provided by the author
WriteToFile 写入文件.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author