fix switch statement

This commit is contained in:
Adrien Delorme 2019-09-17 16:25:44 +02:00
parent 79fbe98f90
commit adad25b50b

View File

@ -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