reflect.Value.Index (method)
58 uses
reflect (current package)
deepequal.go#L93: if !deepValueEqual(v1.Index(i), v2.Index(i), visited) {
deepequal.go#L113: if !deepValueEqual(v1.Index(i), v2.Index(i), visited) {
iter.go#L141: if !yield(ValueOf(i), v.Index(i)) {
iter.go#L149: if !yield(ValueOf(i), v.Index(i)) {
value.go#L453: slice.Index(i).Set(x)
value.go#L1394: func (v Value) Index(i int) Value {
value.go#L1606: if !v.Index(i).IsZero() {
value.go#L2651: s.Index(n + i).Set(v)
value.go#L3126: if !v.Index(i).Comparable() {
value.go#L3204: if !v.Index(i).Equal(u.Index(i)) {
crypto/x509
verify.go#L556: constraint := excludedValue.Index(i).Interface()
verify.go#L576: constraint := permittedValue.Index(i).Interface()
encoding/asn1
asn1.go#L642: offset, err = parseField(ret.Index(i), bytes, offset, params)
marshal.go#L544: return makeField(v.Index(0), fp)
marshal.go#L549: m[i], err = makeField(v.Index(i), fp)
encoding/binary
binary.go#L850: d.value(v.Index(i))
binary.go#L872: d.value(v.Index(i))
binary.go#L919: e.value(v.Index(i))
binary.go#L937: e.value(v.Index(i))
encoding/json
decode.go#L556: if err := d.value(v.Index(i)); err != nil {
decode.go#L582: v.Index(i).SetZero() // zero remainder of array
encode.go#L870: ae.elemEnc(e, v.Index(i), opts)
fmt
print.go#L883: bytes[i] = byte(f.Index(i).Uint())
print.go#L901: p.printValue(f.Index(i), verb, depth+1)
print.go#L910: p.printValue(f.Index(i), verb, depth+1)
scan.go#L1042: v.Index(i).SetUint(uint64(str[i]))
github.com/google/go-cmp/cmp
compare.go#L442: step.vx, step.xkey = vx.Index(ix), ix
compare.go#L447: step.vy, step.ykey = vy.Index(iy), iy
report_reflect.go#L238: s := opts.WithTypeMode(elideType).FormatValue(v.Index(i), t.Kind(), ptrs)
report_slices.go#L167: s := formatString(v.Index(0).String())
report_slices.go#L271: ss = append(ss, formatHex(v.Index(i).Uint()))
report_slices.go#L305: ss = append(ss, fmt.Sprint(v.Index(i).Int()))
report_slices.go#L307: ss = append(ss, fmt.Sprint(v.Index(i).Uint()))
report_slices.go#L309: ss = append(ss, formatHex(v.Index(i).Uint()))
report_slices.go#L311: ss = append(ss, fmt.Sprint(v.Index(i).Interface()))
report_slices.go#L362: return vx.Index(ix).Interface() == vy.Index(iy).Interface()
github.com/google/go-cmp/cmp/internal/value
sort.go#L62: if isLess(x.Index(i), y.Index(i)) {
sort.go#L65: if isLess(y.Index(i), x.Index(i)) {
go.uber.org/mock/gomock
call.go#L482: va.Index(i).Set(v.Index(i))
matchers.go#L288: wantedMatcher := Eq(wanted.Index(i).Interface())
matchers.go#L293: if wantedMatcher.Matches(given.Index(j).Interface()) {
go/ast
print.go#L188: p.print(x.Index(i))
print.go#L206: p.print(x.Index(i))
google.golang.org/protobuf/internal/impl
convert_list.go#L114: return ls.conv.PBValueOf(ls.v.Elem().Index(i))
convert_list.go#L117: ls.v.Elem().Index(i).Set(ls.conv.GoValueOf(v))
legacy_message.go#L231: v := vs.Index(i)
gotest.tools/v3/assert/cmp
compare.go#L193: if reflect.DeepEqual(colValue.Index(i).Interface(), item) {
internal/fmtsort
sort.go#L118: if c := compare(aVal.Index(i), bVal.Index(i)); c != 0 {
text/template
exec.go#L419: oneIteration(reflect.ValueOf(i), val.Index(i))
funcs.go#L228: item = item.Index(x)