diff options
Diffstat (limited to 'modules/base/template.go')
-rw-r--r-- | modules/base/template.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/base/template.go b/modules/base/template.go index b9449e30af..5aa8ac5cc8 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 }, |