likexian / whois

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

Consider making query stats optional and prefixed by % #33

Closed rissson closed 1 year ago

rissson commented 1 year ago

Hi,

I see that all queries are suffixed by some stats about how long that query took: https://github.com/likexian/whois/blob/master/whois.go#L98. Would you consider using % as a suffix (as is done by all whois servers I know anyway), and making it optional?

likexian commented 1 year ago

Hello @rissson Thanks for your feedback.

  1. The comment prefix is change to % now.
  2. You can use SetDisableStats(true) to disable the stats.

If you think this repository is helpful, please share it with friends, thanks.