net: Make errClosing public #10176
Closed
net: Make errClosing public #10176
Labels
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I would like to propose to make net.errClosing public.
One use case for having this error exposed is to detect http client timeouts as demonstrated by this gist.
At the moment the only way to detect a timeout is to compare error strings:
If the error string would ever change in the future this detection would break.
The text was updated successfully, but these errors were encountered: