fix switch statement
This commit is contained in:
parent
79fbe98f90
commit
adad25b50b
@ -60,7 +60,7 @@ func Funcs(ctx *Context) template.FuncMap {
|
||||
result := make(map[string]interface{})
|
||||
for k, v := range FuncGens {
|
||||
switch v := v.(type) {
|
||||
case FuncGenerator:
|
||||
case func(*Context) interface{}:
|
||||
result[k] = v(ctx)
|
||||
default:
|
||||
result[k] = v
|
||||
|
Loading…
x
Reference in New Issue
Block a user