likexian / whois

Whois client for domain and ip whois information query in Go(Golang).
Apache License 2.0
382 stars 70 forks source link

Error while Installing Package #20

Closed abhisheksingh1234 closed 2 years ago

abhisheksingh1234 commented 2 years ago

When I do go get I get the following error

go get -u github.com/likexian/whois github.com/likexian/whois ../github.com/likexian/whois/whois.go:100:21: time.Since(start).Milliseconds undefined (type time.Duration has no field or method Milliseconds)

go version go1.10.4 linux/amd64

likexian commented 2 years ago

Hello @abhisheksingh1234 Thanks for your feedback, this is because go1.10.x is not support time.Milliseconds, please upgrade golang to 1.13.x and retry. Or you can use the binary directly, refer to: https://github.com/likexian/whois/tree/master/cmd/whois

abhisheksingh1234 commented 2 years ago

Thank you upgrading go to latest version works.