package main
import (
"fmt"
"net"
"github.com/phuslu/geoip"
)
func main() {
fmt.Printf("%s", geoip.Country(net.ParseIP("2001:4860:4860::8888")))
}
// Output: US
BenchmarkGeoIpCountryForIPv4-8 20.8 ns/op 0 B/op 0 allocs/op
BenchmarkGeoIpCountryForIPv6-8 38.2 ns/op 0 B/op 0 allocs/op
This site or product includes IP2Location LITE data available from http://www.ip2location.com.