1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-24 08:25:23 +00:00

code quality review

This commit is contained in:
mzz 2020-03-24 20:04:14 +08:00 committed by kslr
parent 9e84ce38dd
commit 49b63cbd79

View File

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