From 75f87eec7fb85fb0b94f5654e18ced95a0b5c618 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sun, 11 Jul 2021 20:08:01 +0800 Subject: [PATCH] chore: sort imports in internal/socket --- internal/socket/tcp_socket.go | 3 ++- internal/socket/udp_socket.go | 3 ++- internal/socket/unix_socket.go | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/internal/socket/tcp_socket.go b/internal/socket/tcp_socket.go index dab9e4ca5..706364a72 100644 --- a/internal/socket/tcp_socket.go +++ b/internal/socket/tcp_socket.go @@ -27,8 +27,9 @@ import ( "net" "os" - "github.com/panjf2000/gnet/errors" "golang.org/x/sys/unix" + + "github.com/panjf2000/gnet/errors" ) var listenerBacklogMaxSize = maxListenerBacklog() diff --git a/internal/socket/udp_socket.go b/internal/socket/udp_socket.go index e779fb14a..974713bcb 100644 --- a/internal/socket/udp_socket.go +++ b/internal/socket/udp_socket.go @@ -27,8 +27,9 @@ import ( "net" "os" - "github.com/panjf2000/gnet/errors" "golang.org/x/sys/unix" + + "github.com/panjf2000/gnet/errors" ) func getUDPSockaddr(proto, addr string) (sa unix.Sockaddr, family int, udpAddr *net.UDPAddr, ipv6only bool, err error) { diff --git a/internal/socket/unix_socket.go b/internal/socket/unix_socket.go index cc6e64ad3..77b98cf0b 100644 --- a/internal/socket/unix_socket.go +++ b/internal/socket/unix_socket.go @@ -26,8 +26,9 @@ import ( "net" "os" - "github.com/panjf2000/gnet/errors" "golang.org/x/sys/unix" + + "github.com/panjf2000/gnet/errors" ) func getUnixSockaddr(proto, addr string) (sa unix.Sockaddr, family int, unixAddr *net.UnixAddr, err error) {