diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-19 22:19:17 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-19 22:19:17 +0800 |
commit | c7660a81c669455e418610225034d6301cb59872 (patch) | |
tree | d114a5d41a3601dd199aabb47507482cc92407b6 /modules/base/template.go | |
parent | a0e73e2b5411499719a7e02281c48ad40dedfa24 (diff) | |
parent | 483cc3136920a70ae1707ec5337d574b288853c3 (diff) |
Merge remote-tracking branch 'origin/master'
Conflicts:
routers/user/user.go
Diffstat (limited to 'modules/base/template.go')
-rw-r--r-- | modules/base/template.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/base/template.go b/modules/base/template.go index 23d3d277..db79340e 100644 --- a/modules/base/template.go +++ b/modules/base/template.go @@ -6,9 +6,7 @@ package base import ( "container/list" - "fmt" "html/template" - "time" ) func Str2html(raw string) template.HTML { @@ -42,9 +40,6 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{ "AppDomain": func() string { return Domain }, - "LoadTimes": func(startTime time.Time) string { - return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms" - }, "AvatarLink": AvatarLink, "str2html": Str2html, "TimeSince": TimeSince, |