whois-go is a simple Go module for domain whois.
whois.go: A golang module for domain whois query.
cli/main.go: A golang cli command for domain whois query.
cli/build.sh: Build the cli command and test it.
Work for most domain extensions and most of the time.
go get github.com/likexian/whois-go
import (
"github.com/likexian/whois-go"
)
func Whois(domain string, servers ...string) (result string, err error)
result, err := whois.Whois("example.com")
if err != nil {
fmt.Println(result)
}
Copyright 2014, Kexian Li
Apache License, Version 2.0
Please refer to whois-parser-go