Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 468 Bytes

File metadata and controls

32 lines (22 loc) · 468 Bytes

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