func (p *Peer) String() string {
	id := ""
	if p.id != "" {
		id = "(id: " + p.id + ")"
	}
	connStatus := "disconnected"
	if conn := p.Conn(); conn != nil {
		connStatus = "connected to " + conn.RemoteURL()
	}
	return fmt.Sprintf("Peer%v %v (%v)", id, p.name, connStatus)
}
// String is a string representation of the peer including whether it's
// connected.
String is a string representation of the peer including whether it's
connected.
// String is a string representation of the peer including whether it ' s // connected .
func (p *Peer) String() string {
	id := ""
	if p.id != "" {
		id = "(id: " + p.id + ")"
	}
	connStatus := "disconnected"
	if conn := p.Conn(); conn != nil {
		connStatus = "connected to " + conn.RemoteURL()
	}
	return fmt.Sprintf("Peer%v %v (%v)", id, p.name, connStatus)
}
func ( p * Peer ) String ( ) string { id := " " if p . id != " " { id = " " + p . id + " " } connStatus := " " if conn := p . Conn ( ) ; conn != nil { connStatus = " " + conn . RemoteURL ( ) } return fmt . Sprintf ( " " , id , p . name , connStatus ) }
String is a string representation of the peer including whether it's
connected.
String is a string representation of the peer including whether it ' s connected .