summaryrefslogtreecommitdiff
path: root/tls-pem2html.go
diff options
context:
space:
mode:
Diffstat (limited to 'tls-pem2html.go')
-rw-r--r--tls-pem2html.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/tls-pem2html.go b/tls-pem2html.go
index 4861787..d339fc5 100644
--- a/tls-pem2html.go
+++ b/tls-pem2html.go
@@ -28,10 +28,10 @@ func handleBool(ok bool, str string, a ...interface{}) {
var tmpl = template.Must(template.New("pem2html").
Funcs(template.FuncMap{
- "red": red,
- "green": green,
- "date": fDate,
- "datetime": fDateTime,
+ "red": red,
+ "green": green,
+ "date": fDate,
+ "datetime": fDateTime,
"colorDatetime": cDateTime,
}).Parse(`<table class=sortable>
<caption>
@@ -141,7 +141,6 @@ func (cert Cert) Class() string {
}
}
-
type Certs []Cert
// Len is the number of elements in the collection.
@@ -188,5 +187,5 @@ func main() {
}
sort.Sort(certs)
- handleErr(tmpl.Execute(os.Stdout, map[string]interface{}{"certs":certs, "now": now}), "Could not execute template: %v\n")
+ handleErr(tmpl.Execute(os.Stdout, map[string]interface{}{"certs": certs, "now": now}), "Could not execute template: %v\n")
}