You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngs/mock/net.go

11 lines
274 B
Go

package mock
// NetAddr mock the net.Addr interface
type NetAddr struct{}
// Network implements the net.Addr interface
func (a NetAddr) Network() string { return "mock" }
// String implements the net.Addr interface
func (a NetAddr) String() string { return "mock-addr" }