From ab51205dd2c6eeb411ad9a34e6950b31830f4908 Mon Sep 17 00:00:00 2001 From: Otto Suess Date: Sun, 20 May 2018 11:42:34 +0200 Subject: [PATCH] fix indentation --- zapconnect.go | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/zapconnect.go b/zapconnect.go index 4563bec..e12a0ce 100644 --- a/zapconnect.go +++ b/zapconnect.go @@ -1,16 +1,16 @@ package main import ( - "fmt" - "io/ioutil" - "github.com/Baozisoftware/qrcode-terminal-go" - "encoding/json" - b64 "encoding/base64" +"fmt" +"io/ioutil" +"github.com/Baozisoftware/qrcode-terminal-go" +"encoding/json" +b64 "encoding/base64" ) type certificates struct { - Cert string `json:"c"` - Macaroon string `json:"m"` + Cert string `json:"c"` + Macaroon string `json:"m"` } func main() { @@ -18,21 +18,21 @@ func main() { certBytes, err := ioutil.ReadFile(loadedConfig.TLSCertPath) if err != nil { - fmt.Print(err) - } + fmt.Print(err) + } - macBytes, err := ioutil.ReadFile(loadedConfig.AdminMacPath) + macBytes, err := ioutil.ReadFile(loadedConfig.AdminMacPath) if err != nil { - fmt.Print(err) - } + fmt.Print(err) + } - sEnc := b64.StdEncoding.EncodeToString([]byte(macBytes)) + sEnc := b64.StdEncoding.EncodeToString([]byte(macBytes)) cert := &certificates{ - Cert: string(certBytes), - Macaroon: sEnc} - certB, _ := json.Marshal(cert) + Cert: string(certBytes), + Macaroon: sEnc} + certB, _ := json.Marshal(cert) - obj := qrcodeTerminal.New() + obj := qrcodeTerminal.New() obj.Get(string(certB)).Print() }