aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/reflect/reflect.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/reflect/reflect.go')
-rw-r--r--tpl/reflect/reflect.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/reflect/reflect.go b/tpl/reflect/reflect.go
index 17646e9a0..07834be1c 100644
--- a/tpl/reflect/reflect.go
+++ b/tpl/reflect/reflect.go
@@ -26,11 +26,11 @@ func New() *Namespace {
type Namespace struct{}
// IsMap reports whether v is a map.
-func (ns *Namespace) IsMap(v interface{}) bool {
+func (ns *Namespace) IsMap(v any) bool {
return reflect.ValueOf(v).Kind() == reflect.Map
}
// IsSlice reports whether v is a slice.
-func (ns *Namespace) IsSlice(v interface{}) bool {
+func (ns *Namespace) IsSlice(v any) bool {
return reflect.ValueOf(v).Kind() == reflect.Slice
}