mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 08:00:57 +00:00
修复key字符串bug
This commit is contained in:
parent
71b03774cc
commit
ad892008cc
@ -47,7 +47,7 @@ func Compare(a, b interface{}) (equal bool) {
|
||||
|
||||
// AddFuncMap let user to register a func in the template
|
||||
func AddFuncMap(key string, funname interface{}) error {
|
||||
if _, ok := beegoTplFuncMap["key"]; ok {
|
||||
if _, ok := beegoTplFuncMap[key]; ok {
|
||||
beegoTplFuncMap[key] = funname
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user