Commit d9184077 authored by Hepri's avatar Hepri

Update templatefunc.go

parent d4e15c0b
......@@ -698,6 +698,8 @@ func MapGet(arg1 interface{}, arg2 ...interface{}) (interface{}, error) {
storedVal := arg1Val.MapIndex(arg2Val)
if storedVal.IsValid() {
var result interface{}
switch arg1Type.Elem().Kind() {
......@@ -724,4 +726,9 @@ func MapGet(arg1 interface{}, arg2 ...interface{}) (interface{}, error) {
} else {
return nil, nil
}
} else {
return nil, nil
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment