package
0.1.5
Repository: https://github.com/zhangyuancloud/common.git
Documentation: pkg.go.dev

# Functions

AbsInt 对int类型取绝对值.
用户名打码.
个人资料第4-7位加*.
No description provided by the author
Cent2Yuan 人民币分转为元.
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
生成密码和盐.
生成token.
获取请求方IP: 1)自行从HTTP头部获取;2)从框架接口获取; https://github.com/gin-gonic/gin/issues/2697.
No description provided by the author
/获取结构体成员名.
/获取结构体表转化成员名.
字符串转换 int.
字符串转int64.
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
MyIpAddresses 获取本机IP地址.
生成32位MD5.
No description provided by the author
MyMACs 获取本机MAC地址.
No description provided by the author
获得明天开始时间.
获得下个月一号时间.
获得下周第一天.
/标准化结构体成员名.
No description provided by the author
No description provided by the author
No description provided by the author
ex: 123,555 -> [123,555].
ex: "棋牌","捕魚" -> ["棋牌","捕魚"].
/解析时间段.
No description provided by the author
針對以天為單位的統計表.
針對以天為單位的統計表 生成報表時間為 01:00 offset = -1 查詢時間為 2020-07-01 00:10:00 ~ 2020-07-05 00:20:00 timeRange = []{ 2020-07-01 00:10:00 ~ 2020-07-01 23:59:59, 2020-07-05 00:00:00 ~ 2020-07-05 00:20:00, 2020-07-04 00:00:00 ~ 2020-07-04 23:59:59} timeMiddleRange = []{ 2020-07-02 00:00:00 ~ 2020-07-03 23:59:59}.
針對以小時為單位的統計表.
解析token.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RandomString 在数字、大写字母、小写字母范围内生成num位的随机字符串.
No description provided by the author
No description provided by the author
RateToClient 比率还原后返回客户端.
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
Time2RangeV1 时间区间切割.
/ 时间范围是否包含当前时间戳.
No description provided by the author
字符串转uint32.
求并集.
No description provided by the author
Yuan2Cent 人民币元转为分.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
小时.
加密密钥.

# Variables

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

# Structs

No description provided by the author
No description provided by the author
/ 时间测量.

# Type aliases

No description provided by the author
No description provided by the author
/时间范围.