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.
11 lines
274 B
Go
11 lines
274 B
Go
3 years ago
|
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" }
|