Go

This is a user contributed library. Special thanks to Tim Heckman for creating this! View the project on Github - https://github.com/theckman/ipdata.

Installation

go get github.com/theckman/go-ipdata

Basic Usage

import "github.com/theckman/go-ipdata"
ipd := ipdata.NewClient("")
data, err := ipd.Lookup("8.8.8.8")
if err != nil {
// handle error
}
fmt.Printf("%s (%s)\n", data.IP, data.ASN)