lego/vendor/github.com/rainycape/memcache/addr.go
Ludovic Fernandez 6004e599ed Manage vendor (#557)
* feat: add dep configuration files.

* chore: add vendor folder.

* refactor: update Dockerfile.

* review: remove git from Dockerfile.

* review: remove RUN apk.

* review: dep status.

* feat: added .dockerignore
2018-05-30 16:28:41 -06:00

23 lines
254 B
Go

package memcache
import (
"net"
)
type Addr struct {
net.Addr
s string
n string
}
func (a *Addr) String() string {
return a.s
}
func NewAddr(addr net.Addr) *Addr {
return &Addr{
Addr: addr,
s: addr.String(),
n: addr.Network(),
}
}