whois-go is a simple Go module for domain whois.
whois.go: A golang module for domain whois query.
whois: A golang cli command for domain whois query.
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)
}
Please refer to whois-parser-go
Copyright 2014-2017, Li Kexian
Apache License, Version 2.0