# Packages
阿里云 短信发送.
No description provided by the author
No description provided by the author
No description provided by the author
服务注册中心 eureka.
二维码.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
mongodb.
监听文件.
mysql.
No description provided by the author
权重随机出结果 返回下标.
Package ratelimit provides an efficient token bucket implementation that can be used to limit the rate of arbitrary things.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package uuid provides implementation of Universally Unique Identifier (UUID).
No description provided by the author
# Functions
interface{} 转化为 map.
创建token.
获取当前的日.
No description provided by the author
Time stamp for the morning of the day: in milliseconds DateDayMilliseconds 获取当日凌晨时间戳(毫秒).
获取当日零时时间戳(秒)Time stamp of the morning of the day: unit seconds.
No description provided by the author
No description provided by the author
*
删除 hash key 删除其中的key
*/.
No description provided by the author
int64.
No description provided by the author
判断邮箱是否正确正确为true错误为false.
No description provided by the author
密码和盐加密存入数据库.
对比两者是否相等.
No description provided by the author
随机取出一定长度的随机数字.
GetBinAbsPath 获取当前运行路径.
获取外网IP地址.
No description provided by the author
**
hash key in key get value (string)
*/.
No description provided by the author
获取本地IP地址.
获取值.
GetPoint 获取点数.
通过key获取value (type String).
No description provided by the author
获取今天周.
No description provided by the author
Int32ToStr int32转到string.
Int64ToStr int64转到string.
int64 转 string.
No description provided by the author
No description provided by the author
interface 转 string.
IntToStr int转到string.
int 转 string.
判断是否为空 输入:"" 输出:false 输入:长度等于0 输出:false 输入:"1" 输出:true.
JsonToMap.
No description provided by the author
MapToJson map 转 Json Json 通过第三方工具 (https://www.sojson.com/json/json2go.html) {"code":200,"data":{"age":19,"user":"lcc"},"massge":"ok"} TestMapToJson.
map 转 struct.
去除最大的.
加密.
取出最小的value.
输入年月 计算一个月的总数.
New 创建一个新的异步执行对象.
NewAsync 老版本的兼容.
获取token中的结构体.
判断密码强度正确为true错误为false.
判断号码是否正确正确为true错误为false.
总和==1000 的数组 返回概率数组下标(下标从0开始的).
RandomString 在数字、大写字母、小写字母范围内生成num位的随机字符串.
No description provided by the author
No description provided by the author
数组去重.
No description provided by the author
ResolveIPV4address 解析IPv4 国家、地区、城市、运行商、错误.
获取盐值.
Send("Error", " testaee", true).
设置值hash.
redis 保存验证码 时间为 60秒.
redis 保存验证码 时间为 60秒.
字符串分割第一个参数为要分割的字符串,第二个参数为分割的条件返回分割后的数组.
No description provided by the author
标准时间格式(秒)转换为int64时间戳.
string 转 int.
StrToInt string转到int.
StrToInt32 string转到int32.
StrToInt64 string转到int64.
struct 转 map.
start:正数 - 在字符串的指定位置开始,超出字符串长度强制把start变为字符串长度 负数 - 在从字符串结尾的指定位置开始 0 - 在字符串中的第一个字符处开始length:正数 - 从 start 参数所在的位置返回 负数 - 从字符串末端返回.
取值.
No description provided by the author
No description provided by the author
将任何数值转换为Int64.
类型断言转类型.
返回值int64类型时间戳(秒): time.Now().Unix())时间戳(纳秒): time.Now().UnixNano())时间戳(毫秒): time.Now().UnixNano()/1e6)时间戳(纳秒转换为秒) time.Now().UnixNano()/1e9)
.
返回值string类型时间戳(秒): time.Now().Unix())时间戳(纳秒): time.Now().UnixNano())时间戳(毫秒): time.Now().UnixNano()/1e6)时间戳(纳秒转换为秒) time.Now().UnixNano()/1e9)
.
WeekOneAndWeekSevenTime 当前周一凌晨和周日最后时间戳.
WithStdLib 绝对值.
# Structs
Async 异步执行对象.
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