6004e599ed
* 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
23 lines
254 B
Go
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(),
|
|
}
|
|
}
|