reflect.Type.NumField (method)
18 uses
reflect (current package)
type.go#L197: NumField() int
encoding/asn1
asn1.go#L916: for i := 0; i < structType.NumField(); i++ {
asn1.go#L923: if structType.NumField() > 0 &&
asn1.go#L930: 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#L437: for i, n := 0, t.NumField(); i < n; i++ {
encoding/gob
decode.go#L1200: if engine.numInstr == 0 && st.NumField() > 0 &&
encode.go#L637: for fieldNum, wireFieldNum := 0, 0; fieldNum < srt.NumField(); fieldNum++ {
encode.go#L646: if srt.NumField() > 0 && len(engine.instr) == 0 {
encoder.go#L120: for i := 0; i < st.NumField(); i++ {
type.go#L525: for i := 0; i < t.NumField(); i++ {
encoding/json
encode.go#L1240: for i := 0; i < f.typ.NumField(); i++ {
net/http
transport.go#L372: 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++ {
src.elv.sh/pkg/eval
options.go#L31: for i := 0; i < struc.Type().NumField(); i++ {
src.elv.sh/pkg/eval/vals
struct_map.go#L65: n := t.NumField()
src.elv.sh/pkg/parse
pprint.go#L37: for i := 0; i < nt.NumField(); i++ {
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)