From 2910ad01b11a9ddb05d2d20a863102cbbe744f36 Mon Sep 17 00:00:00 2001 From: Matthew Casperson Date: Tue, 8 Oct 2024 14:17:51 +1000 Subject: [PATCH] Revert that commit --- internal/types/arrays.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 internal/types/arrays.go diff --git a/internal/types/arrays.go b/internal/types/arrays.go new file mode 100644 index 0000000..a521d0a --- /dev/null +++ b/internal/types/arrays.go @@ -0,0 +1,8 @@ +package types + +import "reflect" + +func isArrayOrSlice(v interface{}) bool { + kind := reflect.TypeOf(v).Kind() + return kind == reflect.Array || kind == reflect.Slice +}