likexian / whois

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

Replace timeouts with ctx #39

Open jtagcat opened 9 months ago

jtagcat commented 9 months ago

https://pkg.go.dev/context

Functions should use ctx as argument. Context should be passed around (using DialContext instead of Dial), or checked with ctx.Done.

likexian commented 3 months ago

Hello @jtagcat Thanks for your feedback, I will do it.


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