reflect.StructField.Anonymous (field)
7 uses
reflect (current package)
type.go#L882: Anonymous bool // is an embedded field
type.go#L978: f.Anonymous = p.Embedded()
type.go#L2568: if field.Anonymous && field.PkgPath != "" {
type.go#L2583: Name: newName(field.Name, string(field.Tag), field.IsExported(), field.Anonymous),
visiblefields.go#L94: if f.Anonymous {
encoding/json
encode.go#L1100: if sf.Anonymous {
encode.go#L1147: if name != "" || !sf.Anonymous || ft.Kind() != reflect.Struct {
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |