reflect.StructField.Index (field)
16 uses
reflect (current package)
type.go#L1101: Index []int // index sequence for Type.FieldByIndex
type.go#L1209: f.Index = []int{i}
type.go#L1306: result.Index = nil
type.go#L1307: result.Index = append(result.Index, scan.index...)
type.go#L1308: result.Index = append(result.Index, i)
value.go#L905: return v.FieldByIndex(f.Index)
value.go#L916: return v.FieldByIndex(f.Index)
encoding/gob
decode.go#L1129: engine.instr[fieldnum] = decInstr{*op, fieldnum, localField.Index, ovfl}
encode.go#L643: engine.instr = append(engine.instr, encInstr{*op, wireFieldNum, f.Index, indir})
encoding/xml
typeinfo.go#L114: finfo := &fieldInfo{idx: f.Index}
github.com/aws/aws-sdk-go/private/protocol/json/jsonutil
unmarshal.go#L171: member := value.FieldByIndex(field.Index)
github.com/google/go-cmp/cmp/cmpopts
struct_filter.go#L179: for i := range sf.Index {
struct_filter.go#L180: ss = append(ss, t.FieldByIndex(sf.Index[:i+1]).Name)
text/template
exec.go#L617: field := receiver.FieldByIndex(tField.Index)
 |
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. |