Categorygithub.com/ftrako/gutils
modulepackage
0.0.4
Repository: https://github.com/ftrako/gutils.git
Documentation: pkg.go.dev

# README

工具类

  • 单元测试
go test -v -count=1 .

# Functions

No description provided by the author
No description provided by the author
创建目录 自动递归创建父级目录.
创建文件 自动递归创建父级目录.
日期转成数字,格式:20060102.
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
通过代理Get请求.
No description provided by the author
No description provided by the author
特殊字符还原.
特殊字符编码,以支持入库.
执行shell命令.
No description provided by the author
No description provided by the author
文件是否存在.
生成token claim 是键值对.
No description provided by the author
No description provided by the author
获取几月.
如果使用了NGINX代理,需要在nginx中设置IP字段 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;.
获取当天0点时间.
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
判断是否是IP地址.
判断是否是内网IP.
解析对象,返回json字符串.
当天剩余秒数.
No description provided by the author
LogStat 记录日志.
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.
No description provided by the author
读取文件所有内容.
逐行读取文本文件.
No description provided by the author
No description provided by the author
expired 时效,单位秒.
expired 时效,单位:秒.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
end 为-1时表示自动计算字符串长度.
No description provided by the author

# Variables

No description provided by the author

# Type aliases

No description provided by the author