/ipwhois

Wrapper around py-ipwhois which has superior potassium

Primary LanguageGoMIT LicenseMIT

ipwhois

Wrapper around py-ipwhois.

To use this package you must have Python and ipwhois installed.

Usage

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.

License

MIT