From de660dbfc549eb36283985ddb5b457586f51ec5b Mon Sep 17 00:00:00 2001 From: Lucas Clemente Date: Sun, 15 May 2016 14:42:56 +0200 Subject: [PATCH] run gofmt -s on main and server config --- example/main.go | 10 ++++------ handshake/server_config.go | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/example/main.go b/example/main.go index 875c83548..5d9cd68be 100644 --- a/example/main.go +++ b/example/main.go @@ -71,11 +71,9 @@ func tlsConfigFromCertpath(certpath string) (*tls.Config, error) { return nil, err } return &tls.Config{ - Certificates: []tls.Certificate{ - tls.Certificate{ - Certificate: [][]byte{certDer}, - PrivateKey: key, - }, - }, + Certificates: []tls.Certificate{{ + Certificate: [][]byte{certDer}, + PrivateKey: key, + }}, }, nil } diff --git a/handshake/server_config.go b/handshake/server_config.go index 026074488..2bbd0773c 100644 --- a/handshake/server_config.go +++ b/handshake/server_config.go @@ -37,8 +37,8 @@ func (s *ServerConfig) Get() []byte { TagKEXS: []byte("C255"), TagAEAD: []byte("CC20"), TagPUBS: append([]byte{0x20, 0x00, 0x00}, s.kex.PublicKey()...), - TagOBIT: []byte{0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7}, - TagEXPY: []byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, + TagOBIT: {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7}, + TagEXPY: {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, TagVER: []byte("Q032"), }) return serverConfig.Bytes()