reflect.StructField.Anonymous (field)
7 uses
reflect (current package)
type.go#L1094: Anonymous bool // is an embedded field
type.go#L1190: f.Anonymous = p.Embedded()
type.go#L2617: if field.Anonymous && field.PkgPath != "" {
type.go#L2632: Name: newName(field.Name, string(field.Tag), field.IsExported(), field.Anonymous),
visiblefields.go#L94: if f.Anonymous {
encoding/json
encode.go#L1123: if sf.Anonymous {
encode.go#L1170: if name != "" || !sf.Anonymous || ft.Kind() != reflect.Struct {
![]() |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |