Style: use gofumpt for fmt

This commit is contained in:
xjasonlyu
2022-01-29 17:26:24 +08:00
parent 1d229ac859
commit e23837aa6d
8 changed files with 12 additions and 15 deletions
+1 -3
View File
@@ -14,9 +14,7 @@ const (
tcpConnectTimeout = 5 * time.Second
)
var (
_defaultDialer Dialer = &Base{}
)
var _defaultDialer Dialer = &Base{}
type Dialer interface {
DialContext(context.Context, *M.Metadata) (net.Conn, error)
+1 -1
View File
@@ -38,7 +38,7 @@ func NewSocks5(addr, user, pass string) (*Socks5, error) {
}
func (ss *Socks5) DialContext(ctx context.Context, metadata *M.Metadata) (c net.Conn, err error) {
var network = "tcp"
network := "tcp"
if ss.unix {
network = "unix"
}