gowhois is whois command implemented by Golang
go install github.com/famasoon/gowhois@latest
gowhois example.com
import (
"github.com/famasoon/gowhois/whois"
)
package main
import (
"fmt"
"github.com/famasoon/gowhois/whois"
)
func main() {
result, _ := whois.Whois("example.com")
fmt.Println(result)
}
- When I implemented it, inspired whois-go (Developed by Li Kexian).
- Whois servers list provided by Cheena