Skip to content

richelieu-yang/chimera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

richelieu-yang/chimera

Golang的工具类.

手动更新ip库(ip2region.xdb)

src: https://github.com/lionsoul2014/ip2region/blob/master/data/ip2region.xdb
dest: resource/ip2region/ip2region.xdb

!!!: 业务项目

(1) 安装此依赖

PS: 如果安装失败(因为部分依赖 i/o timeout等原因),可以考虑更改环境变量GOPROXY,比如切换为阿里的代理( https://mirrors.aliyun.com/goproxy/ ).
命令: go get github.com/richelieu42/chimera

(2) 在main()所在的.go文件中,通过"import _"导入一些包

  • logrusInitKit(最优先,应该在最上面)
  • jsonKit
  • 业务自己的 config 包

参考

TODOs