code quality review

pull/2319/head
mzz 5 years ago committed by GitHub
parent 95f6bcc9ca
commit 50111cd44a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"),

Loading…
Cancel
Save