package
1.0.159
Repository: https://github.com/godaddy-x/freego.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Multiprecision decimal numbers.
No description provided by the author
No description provided by the author
No description provided by the author
Package snowflake provides a very simple Twitter snowflake generator and parser.

# 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
基础类型 int uint float string bool 复杂类型 json.
default base64 - 逆向.
default base64 - 正向.
字节数组转字符串.
检测int数值是否在区间.
检测int64数值是否在区间.
获取并校验字符串长度.
检测int数值是否在区间.
检测int64数值是否在区间.
检测string数值是否在区间.
获取并校验字符串长度.
RemoteIp 返回远程客户端的 IP,如 192.168.1.1.
a>b=1 a=b=0 a<b=-1.
No description provided by the author
深度复制对象.
No description provided by the author
高性能拼接错误对象.
float64转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
获取x天开始和结束时间,最多30天.
获取指定月份开始和结束时间.
get bool value.
get []bool value.
获取当天开始和结束时间.
get float32 value.
get []float32 value.
get float64 value.
get []float64 value.
获取时间的0点.
获取x天开始和当天结束时间,最多30天.
get int value.
get int16 value.
get []int16 value.
get int32 value.
get []int32 value.
get int64 value.
get []int64 value.
get int8 value.
get []int8 value.
get []int value.
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
GetJsonObjectValue 例如: v.Get("a").Get("b").MarshalTo(nil).
No description provided by the author
获取本机内网IP.
No description provided by the author
No description provided by the author
获取当前月份开始和结束时间.
get ObjectID value.
获取项目绝对路径.
通过指针获取对象字段位置.
No description provided by the author
get string value.
get []string value.
get uint value.
get uint16 value.
get []uint16 value.
get uint32 value.
get []uint32 value.
get uint64 value.
get []uint64 value.
get uint8 value.
get []uint8 value.
get []uint value.
No description provided by the author
获取当前星期开始和结束时间.
判定指定字符串是否存在于原字符串.
HMAC-MD5加密.
HMAC-SHA1加密.
HMAC-SHA256加密.
No description provided by the author
No description provided by the author
时间戳转time.
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
No description provided by the author
对象转JSON字符串.
对象转对象.
JSON字符串转对象.
校验JSON格式是否合法.
校验JSON格式是否合法.
获取混合字符串实际长度.
No description provided by the author
65-96大写字母 97-122小写字母.
No description provided by the author
No description provided by the author
No description provided by the author
MD5加密.
ModRand 调用底层生成随机数,进行取模运算,性能提升10倍.
No description provided by the author
byte to float32.
byte to float64.
byte to int.
byte to int16.
byte to int32.
byte to int64.
byte to int8.
byte to string.
byte to uint.
byte to uint16.
byte to uint32.
byte to uint64.
byte to uint8.
NextBID 获取雪花string ID,默认为1024区.
NextIID 获取雪花int64 ID,默认为1024区.
NextSID 获取雪花string ID,默认为1024区.
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
读取文件.
读取JSON格式配置文件.
读取本地JSON配置文件.
No description provided by the author
No description provided by the author
No description provided by the author
set bool value.
set []bool value.
set float32 value.
set []float32 value.
set float32 value.
set []float64 value.
set int value.
set int16 value.
set []int16 value.
set int32 value.
set []int32 value.
set int64 value.
set []int64 value.
set int8 value.
set []int8 value.
set []int value.
set ObjectID value.
set string value.
set []string value.
set uint value.
set uint16 value.
set []uint16 value.
set uint32 value.
set []uint32 value.
set uint64 value.
set []uint64 value.
set uint value.
set []uint8 value.
set []uint value.
SHA256加密.
SHA256加密.
No description provided by the author
保留小数位.
No description provided by the author
无限等待.
字符串转字节数组.
格式字符串转时间戳/毫秒.
格式字符串转时间戳/毫秒 2023-07-22 08:47:27.379 2023-07-22 08:47:27 2023-07-22.
string to bool.
转换成小数.
string to int.
string to int16.
string to int32.
string to int64.
string to int8.
No description provided by the author
截取字符串 start 起点下标 end 结束下标.
时间戳转格式字符串/毫秒.
时间戳转格式字符串/毫秒, 例: 2023-07-22 08:47:27.379.
No description provided by the author
获取当前时间/毫秒.
UnixNano 直接调用底层方法比time.Now()性能提升1倍.
获取当前时间/秒.
65-96大写字母 97-122小写字母.
No description provided by the author
No description provided by the author

# Constants

账号格式.
邮箱地址.
包含+-的浮点数.
身份证格式.
包含+-的自然数.
IPV4地址.
手机号码.
自然数金额格式.
包含+-自然数金额格式.
包含+-的浮点数金额格式.
自然数.
纯数字.
No description provided by the author
No description provided by the author
No description provided by the author
密码格式.
主键ID格式.
No description provided by the author
URL格式.

# Variables

No description provided by the author