I\'m getting an error returned from an io.Copy call, to which I\'ve passed a socket (TCPConn) as the destination. It\'s expected that
error
io.Copy
TCPConn
Having all but an error interface is enough to perform a type assertion or a type switch to reveal the concrete type held by the interface.