From bac49046dfdb984e913202237826cbef06ab9bf3 Mon Sep 17 00:00:00 2001 From: Dmitry Ponomarev Date: Sun, 10 Mar 2024 15:58:12 +0100 Subject: [PATCH] Fix the bug in the `utils.go` file --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index 6fd78b2..92a974c 100644 --- a/utils.go +++ b/utils.go @@ -76,7 +76,7 @@ func IsEmptyByReflection(v reflect.Value) bool { return true } switch v.Kind() { - case reflect.Interface: + case reflect.Interface, reflect.Pointer: return v.IsNil() case reflect.Bool: return !v.Bool()