packagenetworkimport"errors"// ErrNoRemoteAddrs is returned when there are no addresses associated with a peer during a dial.varErrNoRemoteAddrs=errors.New("no remote addresses")// ErrNoConn is returned when attempting to open a stream to a peer with the NoDial// option and no usable connection is available.varErrNoConn=errors.New("no usable connection to peer")
// ErrTransientConn is returned when attempting to open a stream to a peer with only a transient// connection, without specifying the UseTransient option.varErrTransientConn=errors.New("transient connection to peer")