forked from mirror/go-json
chore: remove IsExported
This commit is contained in:
parent
af33c47846
commit
944f8be027
|
@ -17,7 +17,7 @@ func IsIgnoredStructField(field reflect.StructField) bool {
|
||||||
if t.Kind() == reflect.Ptr {
|
if t.Kind() == reflect.Ptr {
|
||||||
t = t.Elem()
|
t = t.Elem()
|
||||||
}
|
}
|
||||||
if !field.IsExported() && t.Kind() != reflect.Struct {
|
if t.Kind() != reflect.Struct {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue