]> Sergey Matveev's repositories - btrtrc.git/blob - string-addr.go
Drop support for go 1.20
[btrtrc.git] / string-addr.go
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) }