reflect.Value.Index (method)
61 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#L455: slice.Index(i).Set(x)
value.go#L1400: func (v Value) Index(i int) Value {
value.go#L1708: if !v.Index(i).IsZero() {
value.go#L2808: s.Index(n + i).Set(v)
value.go#L3312: if !v.Index(i).Comparable() {
value.go#L3390: if !v.Index(i).Equal(u.Index(i)) {
encoding/asn1
asn1.go#L682: offset, err = parseField(ret.Index(i), bytes, offset, params, depth)
marshal.go#L547: return makeField(v.Index(0), fp)
marshal.go#L552: 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/v2
arshal_default.go#L917: k := addressableValue{keys.Index(i), true} // indexed slice element is always addressable
arshal_default.go#L919: v := addressableValue{vals.Index(i), true} // indexed slice element is always addressable
arshal_default.go#L1530: v := addressableValue{va.Index(i), false} // indexed slice element is always addressable
arshal_default.go#L1584: v := addressableValue{va.Index(i), false} // indexed slice element is always addressable
arshal_default.go#L1643: v := addressableValue{va.Index(i), va.forcedAddr} // indexed array element is addressable if array is addressable
arshal_default.go#L1689: v := addressableValue{va.Index(i), va.forcedAddr} // indexed array element is addressable if array is addressable
arshal_default.go#L1702: va.Index(i).SetZero()
encoding/xml
marshal.go#L479: if err := p.marshalValue(val.Index(i), finfo, startTemplate); err != nil {
marshal.go#L652: if err := p.marshalAttr(start, name, val.Index(i)); err != nil {
read.go#L301: if err := d.unmarshalAttr(val.Index(n), attr); err != nil {
read.go#L431: if err := d.unmarshal(v.Index(n), start); err != nil {
fmt
print.go#L871: bytes[i] = byte(f.Index(i).Uint())
print.go#L889: p.printValue(f.Index(i), verb, depth+1)
print.go#L898: p.printValue(f.Index(i), verb, depth+1)
scan.go#L1042: v.Index(i).SetUint(uint64(str[i]))
github.com/jackc/pgx/v5/pgtype
array_codec.go#L418: innerLen = slice.Index(i).Len()
array_codec.go#L419: } else if slice.Index(i).Len() != innerLen {
array_codec.go#L422: if isRagged(slice.Index(i)) {
builtin_wrappers.go#L760: return a.slice.Index(i).Interface()
builtin_wrappers.go#L782: return a.slice.Index(i).Addr().Interface()
builtin_wrappers.go#L803: s = s.Index(0)
builtin_wrappers.go#L818: return a.slice.Index(i).Interface()
builtin_wrappers.go#L830: v = v.Index(si)
builtin_wrappers.go#L897: slice.Index(i).Set(subSlice)
builtin_wrappers.go#L904: return a.slice.Index(i).Addr().Interface()
builtin_wrappers.go#L923: return a.array.Index(i).Interface()
builtin_wrappers.go#L947: return a.array.Index(i).Addr().Interface()
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))
golang.org/x/tools/go/ast/edge
edge.go#L46: v = v.Index(idx) // asserts valid idx
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)
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#L215: item = item.Index(x)