reflect.Value.Set (method)
22 uses
reflect (current package)
value.go#L465: slice.Index(i).Set(x)
value.go#L2253: func (v Value) Set(x Value) {
value.go#L2881: s.Index(n + i).Set(v)
encoding/asn1
asn1.go#L738: v.Set(reflect.ValueOf(result))
asn1.go#L929: val.Field(0).Set(reflect.ValueOf(RawContent(bytes)))
asn1.go#L950: val.Set(reflect.MakeSlice(sliceType, len(innerBytes), len(innerBytes)))
asn1.go#L956: val.Set(newSlice)
encoding/json
decode.go#L476: v.Set(reflect.New(v.Type().Elem()))
decode.go#L522: v.Set(reflect.ValueOf(ai))
decode.go#L588: v.Set(reflect.MakeSlice(v.Type(), 0, 0))
decode.go#L617: v.Set(reflect.ValueOf(oi))
decode.go#L643: v.Set(reflect.MakeMap(t))
decode.go#L716: subv.Set(reflect.New(subv.Type().Elem()))
decode.go#L914: v.Set(reflect.ValueOf(value))
decode.go#L950: v.Set(reflect.ValueOf(string(s)))
decode.go#L986: v.Set(reflect.ValueOf(n))
flag
flag.go#L313: ptrVal.Elem().Set(defVal)
fmt
scan.go#L1040: v.Set(reflect.MakeSlice(typ, len(str), len(str)))
net/http
h2_error.go#L35: 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.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |