Registry / networking / ip2location-ip2location-go

ip2location-ip2location-go

JSON →
library8.3.0+incompatiblegogounverified

A Go library for fast IP address geolocation lookups using IP2Location databases.

go get github.com/ip2location/ip2location-go
INSTALL
IMPORT
SIG · IP2LOCATION-IP2LOC
I
ip2location-ip2location-go
networkinggov8.3.0+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ip2location
github.com/ip2location/ip2location-go

Look up IP address location

package main import ( "fmt" "github.com/ip2location/ip2location-go" ) func main() { db, _ := ip2location.OpenDB("IP2LOCATION-LITE-DB1.BIN") result, _ := db.GetAll("8.8.8.8") fmt.Println(result.CountryShort) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
8.3.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ip2location-ip2location-go — go get ip2location-ip2location-go · libregistry