From bd0a1ae1a7e824e04a9e904b978cbf6f15a2e18b Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Fri, 22 Jun 2018 23:56:41 +0800 Subject: [PATCH] Improve: gofmt -s for shadowsocks.go --- adapters/shadowsocks.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adapters/shadowsocks.go b/adapters/shadowsocks.go index 1d4a79c2..f4950c59 100644 --- a/adapters/shadowsocks.go +++ b/adapters/shadowsocks.go @@ -93,13 +93,13 @@ func serializesSocksAddr(addr *C.Addr) []byte { case socks.AtypDomainName: len := uint8(len(addr.Host)) host := []byte(addr.Host) - buf = [][]byte{[]byte{aType, len}, host, port} + buf = [][]byte{{aType, len}, host, port} case socks.AtypIPv4: host := addr.IP.To4() - buf = [][]byte{[]byte{aType}, host, port} + buf = [][]byte{{aType}, host, port} case socks.AtypIPv6: host := addr.IP.To16() - buf = [][]byte{[]byte{aType}, host, port} + buf = [][]byte{{aType}, host, port} } return bytes.Join(buf, []byte("")) }