package
0.0.10
Repository: https://github.com/lzw5399/go-common-public.git
Documentation: pkg.go.dev

# Packages

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

# Functions

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
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
求差集 slice1-并集.
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
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
No description provided by the author
No description provided by the author
GetCurDayEndMs 获取当前时间的当天结束的毫秒级时间戳.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetMonthEndMs 获取当前时间月末的毫秒级时间戳.
GetMonthStartMs 获取当前时间月初的毫秒级时间戳.
GetNextMonthEndMs 获取指定时间戳的下个月末的毫秒级时间戳.
GetNextMonthStartMs 获取指定时间戳的下个月初的毫秒级时间戳.
No description provided by the author
No description provided by the author
GetTheLastMondayForNowGap 获取上一个星期一到现在相差多少天.
GetTheLastMonthForYear 获取上一个月份.
No description provided by the author
InitIdGen 需要先初始化config,不然获取不到redis的配置.
No description provided by the author
No description provided by the author
求交集.
No description provided by the author
判断字符串是否重复.
Md5 hash算法.
No description provided by the author
NewSnowflakeID 针对大家在使用中经常出现的性能疑问,我给出以下3组最佳实践: ❄ 如果ID生成需求不超过5W个/s,不用修改任何配置参数 ❄ 如果超过5W个/s,低于50W个/s,推荐修改:SeqBitLength=10 ❄ 如果超过50W个/s,接近500W个/s,推荐修改:SeqBitLength=12 总之,增加 SeqBitLength 会让性能更高,但生成的 ID 会更长。.
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
Sha256 hash算法.
Sm3 国密hash算法.
Sm3Raw 国密hash算法.
No description provided by the author
No description provided by the author
StrLen 计算字符串长度,中文字符算2个长度,其他字符算1个长度.
No description provided by the author
求并集.
No description provided by the author
No description provided by the author
No description provided by the author

# 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
No description provided by the author

# Structs

Ballast 使用ballast大对象来减少GC的频次.
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