summaryrefslogtreecommitdiff
path: root/openring.go
diff options
context:
space:
mode:
Diffstat (limited to 'openring.go')
-rw-r--r--openring.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/openring.go b/openring.go
index cbaba1f..4f74631 100644
--- a/openring.go
+++ b/openring.go
@@ -76,6 +76,9 @@ func main() {
"date": func(t time.Time) string {
return t.Format("January 2, 2006")
},
+ "datef": func(fmt string, t time.Time) string {
+ return t.Format(fmt)
+ },
}).
Parse(string(input))
if err != nil {