From 3489ea5b2e9aa82dab4efc5e3f48fe6171f11ddd Mon Sep 17 00:00:00 2001 From: Alex Flint Date: Sat, 29 Oct 2022 15:23:56 -0400 Subject: [PATCH] in a second place: use reflect.Ptr not reflect.Pointer since the latter was added in Go 1.18 --- reflect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflect.go b/reflect.go index 466d65f..5d6acb3 100644 --- a/reflect.go +++ b/reflect.go @@ -102,7 +102,7 @@ func isExported(field string) bool { // isZero returns true if v contains the zero value for its type func isZero(v reflect.Value) bool { t := v.Type() - if t.Kind() == reflect.Pointer || t.Kind() == reflect.Slice || t.Kind() == reflect.Map || t.Kind() == reflect.Chan || t.Kind() == reflect.Interface { + if t.Kind() == reflect.Ptr || t.Kind() == reflect.Slice || t.Kind() == reflect.Map || t.Kind() == reflect.Chan || t.Kind() == reflect.Interface { return v.IsNil() } if !t.Comparable() {