From 49b63cbd79645708efefd837f0f2741cc0f13115 Mon Sep 17 00:00:00 2001 From: mzz Date: Tue, 24 Mar 2020 20:04:14 +0800 Subject: [PATCH] code quality review --- common/protocol/tls/cert/cert_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/protocol/tls/cert/cert_test.go b/common/protocol/tls/cert/cert_test.go index 9b6e59b6..20ad6239 100644 --- a/common/protocol/tls/cert/cert_test.go +++ b/common/protocol/tls/cert/cert_test.go @@ -44,7 +44,7 @@ func generate(domainNames []string, isCA bool, jsonOutput bool, fileOutput strin } if jsonOutput { - printJson(cert) + printJSON(cert) } if len(fileOutput) > 0 { @@ -61,7 +61,7 @@ type jsonCert struct { Key []string `json:"key"` } -func printJson(certificate *Certificate) { +func printJSON(certificate *Certificate) { certPEM, keyPEM := certificate.ToPEM() jCert := &jsonCert{ Certificate: strings.Split(strings.TrimSpace(string(certPEM)), "\n"),