github.com/anacrolix/torrent@v1.61.0/string-addr.go (about) 1 package torrent 2 3 import "net" 4 5 // This adds a net.Addr interface to a string address that has no presumed Network. 6 type StringAddr string 7 8 var _ net.Addr = StringAddr("") 9 10 func (StringAddr) Network() string { return "" } 11 func (me StringAddr) String() string { return string(me) }