Go SDK
There is no extra registry. go get uses the GitHub module.
- Source / module: github.com/lavrox/SDK-IPWho-IP-Geolocation-Go
- API key: ipwho.org/free-plan
Installation
Section titled “Installation”go get github.com/lavrox/SDK-IPWho-IP-Geolocation-GoGo 1.21+. Stdlib only.
Quick start
Section titled “Quick start”client, err := ipwho.NewClient(os.Getenv("IPWHO_API_KEY"))resp, err := client.Lookup("8.8.8.8", nil) // GET /ip/{ip}me, err := client.Me(nil) // GET /mebulk, err := client.Bulk([]string{"8.8.8.8", "1.1.1.1"}, nil) // []IpGeoResponseOptional JSON fields are pointers — check before dereference.
fmt.Println(*resp.Data.GeoLocation.Country) // United States