Wrapper around py-ipwhois.
To use this package you must have Python
and ipwhois
installed.
package main
import (
"fmt"
"log"
"github.com/rikonor/ipwhois"
)
func main() {
res, err := ipwhois.LookupIP("8.8.8.8")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%s", res)
}
The User-Agent requests are made with can be overridden via ipwhois.LookupIPWithUA
.
MIT