From 32392545a8cba43ee21f34f9d35fc0d4569420a1 Mon Sep 17 00:00:00 2001 From: galargh Date: Mon, 6 Jun 2022 15:38:07 +0200 Subject: [PATCH] chore: go fmt --- ctx.go | 12 ++++++------ net.go | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ctx.go b/ctx.go index 28d1655..3bebf0d 100644 --- a/ctx.go +++ b/ctx.go @@ -365,12 +365,12 @@ func (c *Ctx) LoadVerifyLocations(ca_file string, ca_path string) error { type Version int const ( - SSL3_VERSION Version = C.SSL3_VERSION - TLS1_VERSION Version = C.TLS1_VERSION - TLS1_1_VERSION Version = C.TLS1_1_VERSION - TLS1_2_VERSION Version = C.TLS1_2_VERSION - TLS1_3_VERSION Version = C.TLS1_3_VERSION - DTLS1_VERSION Version = C.DTLS1_VERSION + SSL3_VERSION Version = C.SSL3_VERSION + TLS1_VERSION Version = C.TLS1_VERSION + TLS1_1_VERSION Version = C.TLS1_1_VERSION + TLS1_2_VERSION Version = C.TLS1_2_VERSION + TLS1_3_VERSION Version = C.TLS1_3_VERSION + DTLS1_VERSION Version = C.DTLS1_VERSION DTLS1_2_VERSION Version = C.DTLS1_2_VERSION ) diff --git a/net.go b/net.go index 769c634..b2293c7 100644 --- a/net.go +++ b/net.go @@ -89,7 +89,7 @@ func Dial(network, addr string, ctx *Ctx, flags DialFlags) (*Conn, error) { // parameters. func DialTimeout(network, addr string, timeout time.Duration, ctx *Ctx, flags DialFlags) (*Conn, error) { - d := net.Dialer {Timeout: timeout} + d := net.Dialer{Timeout: timeout} return dialSession(d, network, addr, ctx, flags, nil) } @@ -109,7 +109,7 @@ func DialTimeout(network, addr string, timeout time.Duration, ctx *Ctx, func DialSession(network, addr string, ctx *Ctx, flags DialFlags, session []byte) (*Conn, error) { var d net.Dialer - return dialSession(d, network, addr, ctx, flags, session); + return dialSession(d, network, addr, ctx, flags, session) } func dialSession(d net.Dialer, network, addr string, ctx *Ctx, flags DialFlags,