From ec98b98fa6806ed8e106067b6910d965cd802173 Mon Sep 17 00:00:00 2001 From: StalkR Date: Thu, 19 Jun 2014 15:19:37 +0200 Subject: [PATCH] client/mocknetconn_test: minor fix found by go vet net.IPAddr composite literal uses unkeyed fields --- client/mocknetconn_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/mocknetconn_test.go b/client/mocknetconn_test.go index b438a6c..e736c88 100644 --- a/client/mocknetconn_test.go +++ b/client/mocknetconn_test.go @@ -130,11 +130,11 @@ func (m *mockNetConn) Closed() bool { } func (m *mockNetConn) LocalAddr() net.Addr { - return &net.IPAddr{net.IPv4(127, 0, 0, 1), ""} + return &net.IPAddr{IP: net.IPv4(127, 0, 0, 1)} } func (m *mockNetConn) RemoteAddr() net.Addr { - return &net.IPAddr{net.IPv4(127, 0, 0, 1), ""} + return &net.IPAddr{IP: net.IPv4(127, 0, 0, 1)} } func (m *mockNetConn) SetDeadline(t time.Time) error {