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.20220129"
Version is iplocation database version.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.