Is there a way in Go to check whether an error returned from a network operation (e.g., net.Conn
's various methods) is due to the connection having been manually closed locally (via a Close
method)? In particular, I'm not talking about io.EOF
, which implies that the other side of the connection closed it.