We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Value.Elem
reflect.Indirect
1 parent 218a63d commit 298e650Copy full SHA for 298e650
internal/template/template.go
@@ -30,7 +30,7 @@ func getArrayValues(funcName string, entries interface{}) (*reflect.Value, error
30
kind := entriesVal.Kind()
31
32
if kind == reflect.Ptr {
33
- entriesVal = reflect.Indirect(entriesVal)
+ entriesVal = entriesVal.Elem()
34
kind = entriesVal.Kind()
35
}
36
0 commit comments