summaryrefslogtreecommitdiff
path: root/coll/index.go
diff options
context:
space:
mode:
Diffstat (limited to 'coll/index.go')
-rw-r--r--coll/index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/coll/index.go b/coll/index.go
index ba815320..46402a51 100644
--- a/coll/index.go
+++ b/coll/index.go
@@ -14,7 +14,7 @@ import (
// will return an error if the key is not found. Note that the argument order is
// different from the template function definition found in `funcs/coll.go` to
// allow for variadic indexes.
-func Index(v interface{}, keys ...interface{}) (interface{}, error) {
+func Index(v any, keys ...any) (any, error) {
item := reflect.ValueOf(v)
item = indirectInterface(item)
if !item.IsValid() {