ip2location ip地址查询库。 由于项目中需要的ip信息比较简单,所以使用golang实现了ip2location db的压缩功能,主要参考ip2region项目,压缩耗时很短,方便定制。 使用 go get github.com/segdumping/ip2location