From 66f8b2629d0f998b10e01dd03ad49790ee3da825 Mon Sep 17 00:00:00 2001 From: Nao Yonashiro Date: Thu, 28 Apr 2022 20:30:06 +0900 Subject: [PATCH] chore: use reflect.Ptr --- internal/encoder/code.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/encoder/code.go b/internal/encoder/code.go index a886480..8d62a9c 100644 --- a/internal/encoder/code.go +++ b/internal/encoder/code.go @@ -1010,7 +1010,7 @@ func isEmbeddedStruct(field *StructFieldCode) bool { return false } t := field.typ - if t.Kind() == reflect.Pointer { + if t.Kind() == reflect.Ptr { t = t.Elem() } return t.Kind() == reflect.Struct