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