1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package dht import ( "fmt" "net" "github.com/felix/dhtsearch/models" ) type remoteNode struct { addr net.Addr id models.Infohash } // String implements fmt.Stringer func (r remoteNode) String() string { return fmt.Sprintf("%s (%s)", r.id.String(), r.addr.String()) }