reflect.StructField.Anonymous (field)
12 uses
reflect (current package)
type.go#L1102: Anonymous bool // is an embedded field
type.go#L1193: f.Anonymous = p.embedded()
type.go#L2770: if field.Anonymous && field.PkgPath != "" {
type.go#L2785: if field.Anonymous {
encoding/json
encode.go#L1243: if sf.Anonymous {
encode.go#L1290: if name != "" || !sf.Anonymous || ft.Kind() != reflect.Struct {
encoding/xml
typeinfo.go#L63: if (f.PkgPath != "" && !f.Anonymous) || f.Tag.Get("xml") == "-" {
typeinfo.go#L68: if f.Anonymous {
github.com/ghodss/yaml
fields.go#L180: if name != "" || !sf.Anonymous || ft.Kind() != reflect.Struct {
github.com/google/go-cmp/cmp/cmpopts
ignore.go#L81: case !fi.Anonymous:
github.com/google/go-cmp/cmp/internal/value
name.go#L94: if !sf.Anonymous {
gopkg.in/yaml.v2
yaml.go#L324: if field.PkgPath != "" && !field.Anonymous {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |