reflect.Type.NumField (method)
14 uses
reflect (current package)
type.go#L206: NumField() int
visiblefields.go#L26: fields: make([]StructField, 0, t.NumField()),
visiblefields.go#L66: for i := 0; i < t.NumField(); i++ {
encoding/asn1
asn1.go#L919: for i := 0; i < structType.NumField(); i++ {
asn1.go#L926: if structType.NumField() > 0 &&
asn1.go#L933: for i := 0; i < structType.NumField(); i++ {
marshal.go#L490: for i := 0; i < t.NumField(); i++ {
marshal.go#L498: n := t.NumField()
encoding/binary
binary.go#L511: for i, n := 0, t.NumField(); i < n; i++ {
encoding/json
encode.go#L1098: for i := 0; i < f.typ.NumField(); i++ {
net/http
h2_error.go#L22: numField := srcType.NumField()
h2_error.go#L23: if dstType.NumField() != numField {
transport.go#L382: if rv := reflect.ValueOf(altProto["https"]); rv.IsValid() && rv.Type().Kind() == reflect.Struct && rv.Type().NumField() == 1 {
net/http/httptrace
trace.go#L182: for i := 0; i < structType.NumField(); i++ {
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. |