reflect.Value.Set (method)
79 uses
reflect (current package)
value.go#L453: slice.Index(i).Set(x)
value.go#L2050: func (v Value) Set(x Value) {
value.go#L2651: s.Index(n + i).Set(v)
encoding/asn1
asn1.go#L732: v.Set(reflect.ValueOf(result))
asn1.go#L923: val.Field(0).Set(reflect.ValueOf(RawContent(bytes)))
asn1.go#L944: val.Set(reflect.MakeSlice(sliceType, len(innerBytes), len(innerBytes)))
asn1.go#L950: val.Set(newSlice)
encoding/json
decode.go#L477: v.Set(reflect.New(v.Type().Elem()))
decode.go#L523: v.Set(reflect.ValueOf(ai))
decode.go#L589: v.Set(reflect.MakeSlice(v.Type(), 0, 0))
decode.go#L618: v.Set(reflect.ValueOf(oi))
decode.go#L644: v.Set(reflect.MakeMap(t))
decode.go#L720: subv.Set(reflect.New(subv.Type().Elem()))
decode.go#L923: v.Set(reflect.ValueOf(value))
decode.go#L960: v.Set(reflect.ValueOf(string(s)))
decode.go#L995: v.Set(reflect.ValueOf(n))
encode.go#L1213: v2.Set(v)
flag
flag.go#L313: ptrVal.Elem().Set(defVal)
fmt
scan.go#L1040: v.Set(reflect.MakeSlice(typ, len(str), len(str)))
github.com/google/go-cmp/cmp
compare.go#L152: vvx.Set(vx)
compare.go#L157: vvy.Set(vy)
compare.go#L669: vc.Set(v)
report_slices.go#L113: vx2.Set(vx)
report_slices.go#L114: vy2.Set(vy)
go.uber.org/mock/gomock
call.go#L212: v.Set(reflect.ValueOf(ret))
call.go#L271: reflect.ValueOf(args[n]).Elem().Set(v)
call.go#L482: va.Index(i).Set(v.Index(i))
google.golang.org/protobuf/internal/impl
codec_field.go#L68: vi.Set(vw)
codec_field.go#L105: dst.AsValueOf(ft).Elem().Set(reflect.New(src.AsValueOf(ft).Elem().Elem().Elem().Type()))
codec_field.go#L146: mp.Set(reflect.New(ft.Elem()))
codec_field.go#L315: mp.Set(reflect.New(ft.Elem()))
codec_map.go#L62: mp.Elem().Set(reflect.MakeMap(mapi.goType))
codec_map.go#L357: dstm.Set(reflect.MakeMap(f.ft))
codec_map.go#L372: dstm.Set(reflect.MakeMap(f.ft))
codec_map.go#L387: dstm.Set(reflect.MakeMap(f.ft))
convert_list.go#L34: pv.Elem().Set(v)
convert_list.go#L117: ls.v.Elem().Index(i).Set(ls.conv.GoValueOf(v))
convert_list.go#L120: ls.v.Elem().Set(reflect.Append(ls.v.Elem(), ls.conv.GoValueOf(v)))
convert_list.go#L131: ls.v.Elem().Set(ls.v.Elem().Slice(0, i))
legacy_message.go#L502: m.v.Elem().Set(reflect.Zero(m.v.Type().Elem()))
merge.go#L169: dm.Set(reflect.New(f.ft.Elem()))
message_opaque.go#L157: rv.Set(reflect.Zero(rv.Type()))
message_opaque.go#L175: rv.Set(pv)
message_opaque.go#L180: v.Set(reflect.MakeMap(fs.Type))
message_opaque.go#L209: rv.Set(reflect.Zero(rv.Type()))
message_opaque.go#L228: rv.Set(pv.Elem())
message_opaque.go#L275: rv.Elem().Set(reflect.Zero(rv.Type().Elem()))
message_opaque.go#L308: rv.Elem().Set(val.Elem())
message_opaque.go#L357: rv.Elem().Set(reflect.Zero(rv.Type().Elem()))
message_opaque.go#L377: rv.Set(reflect.New(fs.Type.Elem()))
message_opaque.go#L383: rv.Elem().Set(val.Elem())
message_opaque.go#L389: rv.Set(reflect.New(fs.Type.Elem()))
message_opaque.go#L450: rv.Set(reflect.Zero(rv.Type()))
message_opaque.go#L458: rv.Set(reflect.New(ft))
message_opaque.go#L463: rv.Set(conv.GoValueOf(v))
message_opaque.go#L465: rv.Set(emptyBytes)
message_reflect.go#L418: rv.Elem().Set(reflect.Zero(rv.Type().Elem()))
message_reflect_field.go#L100: rv.Set(reflect.Zero(rv.Type()))
message_reflect_field.go#L116: rv.Set(reflect.New(ot))
message_reflect_field.go#L119: rv.Set(conv.GoValueOf(v))
message_reflect_field.go#L127: rv.Set(reflect.New(ot))
message_reflect_field.go#L131: rv.Set(conv.GoValueOf(protoreflect.ValueOfMessage(conv.New().Message())))
message_reflect_field.go#L164: rv.Set(reflect.Zero(rv.Type()))
message_reflect_field.go#L182: rv.Set(pv)
message_reflect_field.go#L187: v.Set(reflect.MakeMap(fs.Type))
message_reflect_field.go#L217: rv.Set(reflect.Zero(rv.Type()))
message_reflect_field.go#L235: rv.Set(pv.Elem())
message_reflect_field.go#L305: rv.Set(reflect.Zero(rv.Type()))
message_reflect_field.go#L313: rv.Set(reflect.New(ft))
message_reflect_field.go#L317: rv.Set(conv.GoValueOf(v))
message_reflect_field.go#L320: rv.Set(emptyBytes) // preserve presence
message_reflect_field.go#L322: rv.Set(nilBytes) // do not preserve presence
message_reflect_field.go#L352: rv.Set(reflect.Zero(rv.Type()))
message_reflect_field.go#L363: rv.Set(conv.GoValueOf(v))
message_reflect_field.go#L371: rv.Set(conv.GoValueOf(conv.New()))
net/http
h2_error.go#L34: df.Set(src.Field(i).Convert(df.Type()))
net/http/httptrace
trace.go#L193: tf.Set(of)
trace.go#L206: tv.Field(i).Set(newFunc)
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L693: reflect.ValueOf(out).Elem().Set(reflect.ValueOf(defaultValue))
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)