IP search based on 17monipdb, the IP database parser for china with golang.
go get github.com/axgle/ip
package main
import "github.com/axgle/ip"
func main() {
ip.Load("../17monipdb.dat")
address := ip.Find("8.8.8.8") //address: GOOGLE\tGOOGLE\t
println(address)
address = ip.Find("202.106.46.151") //address: **\t北京\t
println(address)
address = ip.Find("202.115.128.64") //address: **\t四川\t成都理工大学
println(address)
}
BSD
0.0.3 update 17monipdb.dat for more detail info and add Paul Gao's php parse
0.0.2 remove binary package
0.0.1 init release.
- Paul Gao: for his 17monipdb.dat data.