From 5e9a45f74a7f55cde71054255bd8dec8a8037a72 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 21 May 2014 21:37:13 -0400 Subject: Code convention --- modules/base/template.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/base/template.go b/modules/base/template.go index b9449e30..5aa8ac5c 100644 --- a/modules/base/template.go +++ b/modules/base/template.go @@ -10,6 +10,7 @@ import ( "encoding/json" "fmt" "html/template" + "runtime" "strings" "time" ) @@ -47,6 +48,9 @@ var mailDomains = map[string]string{ } var TemplateFuncs template.FuncMap = map[string]interface{}{ + "GoVer": func() string { + return runtime.Version() + }, "AppName": func() string { return AppName }, -- cgit v1.2.3