diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-21 21:37:13 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-21 21:37:13 -0400 |
commit | 5e9a45f74a7f55cde71054255bd8dec8a8037a72 (patch) | |
tree | 9e001c14252cec5950c9c93d1ce99f30108aefbf /modules/base/template.go | |
parent | 1331134316e1165d68d2cb6473e16929ed794dea (diff) | |
download | gitea-5e9a45f74a7f55cde71054255bd8dec8a8037a72.tar.gz gitea-5e9a45f74a7f55cde71054255bd8dec8a8037a72.zip |
Code convention
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 }, |