reflect.Value.Set (method)
23 uses
reflect (current package)
value.go#L455: slice.Index(i).Set(x)
value.go#L2151: func (v Value) Set(x Value) {
value.go#L2794: s.Index(n + i).Set(v)
encoding/asn1
asn1.go#L771: v.Set(reflect.ValueOf(result))
asn1.go#L971: val.Field(0).Set(reflect.ValueOf(RawContent(bytes)))
asn1.go#L992: val.Set(reflect.MakeSlice(sliceType, len(innerBytes), len(innerBytes)))
asn1.go#L998: val.Set(newSlice)
encoding/json
decode.go#L482: v.Set(reflect.New(v.Type().Elem()))
decode.go#L528: v.Set(reflect.ValueOf(ai))
decode.go#L594: v.Set(reflect.MakeSlice(v.Type(), 0, 0))
decode.go#L623: v.Set(reflect.ValueOf(oi))
decode.go#L649: v.Set(reflect.MakeMap(t))
decode.go#L725: subv.Set(reflect.New(subv.Type().Elem()))
decode.go#L928: v.Set(reflect.ValueOf(value))
decode.go#L965: v.Set(reflect.ValueOf(string(s)))
decode.go#L1000: v.Set(reflect.ValueOf(n))
encode.go#L1217: v2.Set(v)
fmt
scan.go#L1040: v.Set(reflect.MakeSlice(typ, len(str), len(str)))
golang.org/x/crypto/cryptobyte
asn1.go#L693: reflect.ValueOf(out).Elem().Set(reflect.ValueOf(defaultValue))
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.8.4. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |