Golang的工具类.
src: https://github.com/lionsoul2014/ip2region/blob/master/data/ip2region.xdb
dest: resource/ip2region/ip2region.xdb
PS: 如果安装失败(因为部分依赖 i/o timeout等原因),可以考虑更改环境变量GOPROXY,比如切换为阿里的代理( https://mirrors.aliyun.com/goproxy/ ).
命令:
go get github.com/richelieu42/chimera
- logrusInitKit(最优先,应该在最上面)
- jsonKit
- 业务自己的 config 包
(1) duke-git/lancet 官方API说明 https://www.golancet.cn/api/overview.html 支持300+常用功能的开源GO语言工具函数库 https://mp.weixin.qq.com/s?__biz=MzA4ODg0NDkzOA==&mid=2247498172&idx=1&sn=461d8429c094189f4e10732d00805339 github(3.2k): https://github.com/duke-git/lancet/blob/main/README_zh-CN.md (2) samber/lo Golang.wps github(14.2k): https://github.com/samber/lo (3) GoFramev2 https://goframe.org/pages/viewpage.action?pageId=1114859 github(10.4k): https://github.com/gogf/gf
github.com/duke-git/lancet/v2 v2.2.9 开始有问题 duke-git/lancet#166