We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create a structInfo but the always inculde unexported field
schema/cache.go
Lines 129 to 139 in 5fca2dc
create a structInfo but the skip unexported field
// create creates a structInfo with meta-data about a struct. func (c *cache) create(t reflect.Type, parentAlias string) *structInfo { info := &structInfo{} var anonymousInfos []*structInfo for i := 0; i < t.NumField(); i++ { field := t.Field(i) // !!! skip unexported field if !field.IsExported() { continue } if f := c.createField(field, parentAlias); f != nil { info.fields = append(info.fields, f) if ft := indirectType(f.typ); ft.Kind() == reflect.Struct && f.isAnonymous { anonymousInfos = append(anonymousInfos, c.create(ft, f.canonicalAlias)) } } }
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an existing issue for this?
Current Behavior
create a structInfo but the always inculde unexported field
schema/cache.go
Lines 129 to 139 in 5fca2dc
Expected Behavior
create a structInfo but the skip unexported field
Steps To Reproduce
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: