From 944f8be027ed8fd0d47069ba945bd0c4671055a0 Mon Sep 17 00:00:00 2001 From: Nao Yonashiro Date: Thu, 28 Apr 2022 20:24:46 +0900 Subject: [PATCH] chore: remove IsExported --- internal/runtime/struct_field.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/runtime/struct_field.go b/internal/runtime/struct_field.go index eba4257..baab0c5 100644 --- a/internal/runtime/struct_field.go +++ b/internal/runtime/struct_field.go @@ -17,7 +17,7 @@ func IsIgnoredStructField(field reflect.StructField) bool { if t.Kind() == reflect.Ptr { t = t.Elem() } - if !field.IsExported() && t.Kind() != reflect.Struct { + if t.Kind() != reflect.Struct { return true } } else {