Registry / networking / lionsoul2014-ip2region

lionsoul2014-ip2region

JSON →
library3.16.0+incompatiblegogounverified

A library for IP address location lookup using the ip2region database.

go get github.com/lionsoul2014/ip2region
INSTALL
IMPORT
SIG · LIONSOUL2014-IP2RE
L
lionsoul2014-ip2region
networkinggov3.16.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.

ip2region
github.com/lionsoul2014/ip2region

Look up IP location from a database file.

package main import ( "fmt" "github.com/lionsoul2014/ip2region" ) func main() { db, _ := ip2region.New("ip2region.db") defer db.Close() region, _ := db.MemorySearch("8.8.8.8") fmt.Println(region) }
Debug
Known issues
breakingThe module version includes '+incompatible' indicating it does not use Go modules properly; may cause issues with dependency resolution.
fix
Use a newer version or fork that supports Go modules.
affects: >=3.0.0
Upgrade
Version history
3.16.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
lionsoul2014-ip2region — go get lionsoul2014-ip2region · libregistry