Documentation
¶
Overview ¶
Package iploc provides fastest Geolocation Country library for Go.
package main
import (
"fmt"
"net"
"github.com/phuslu/iploc"
)
func main() {
fmt.Printf("%s", iploc.Country(net.ParseIP("2001:4860:4860::8888")))
}
// Output: US
Index ¶
Constants ¶
View Source
const Version = "v1.0.20210730"
Variables ¶
This section is empty.
Functions ¶
func IsReservedIPv4 ¶ added in v1.0.20200930
IsReservedIPv4 detects a net.IP is a reserved address, return fasle if IPv6
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.