Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2666623

Browse files
author
xuxinhua
committed
bugfix
1 parent 1a8abba commit 2666623

File tree

1 file changed

+3
-2
lines changed
  • websites/code/studygolang/src/filter

1 file changed

+3
-2
lines changed

websites/code/studygolang/src/filter/view.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"logger"
2222
"service"
2323
"util"
24+
"util/version"
2425
)
2526

2627
// 自定义模板函数
@@ -192,8 +193,8 @@ func (this *ViewFilter) PostFilter(rw http.ResponseWriter, req *http.Request) bo
192193
// websocket主机
193194
data["wshost"] = config.Config["wshost"]
194195
data["build"] = map[string]string{
195-
"version": util.Version,
196-
"date": util.Date,
196+
"version": version.Version,
197+
"date": version.Date,
197198
}
198199

199200
err = tpl.Execute(rw, data)

0 commit comments

Comments
 (0)