func reflect.ValueOf
221 uses
reflect (current package)
deepequal.go#L233: v1 := ValueOf(x)
deepequal.go#L234: v2 := ValueOf(y)
iter.go#L18: tmp := ValueOf(i)
iter.go#L42: return []Value{ValueOf(yield(in[0]))}
iter.go#L77: if !yield(ValueOf(i)) {
iter.go#L85: if !yield(ValueOf(i)) {
iter.go#L93: if !yield(ValueOf(i)) {
iter.go#L128: return []Value{ValueOf(yield(in[0], in[1]))}
iter.go#L141: if !yield(ValueOf(i), v.Index(i)) {
iter.go#L149: if !yield(ValueOf(i), v.Index(i)) {
iter.go#L157: if !yield(ValueOf(i), ValueOf(v)) {
swapper.go#L19: v := ValueOf(slice)
value.go#L3050: func ValueOf(i any) Value {
crypto/x509
verify.go#L576: excludedValue := reflect.ValueOf(excluded)
verify.go#L595: permittedValue := reflect.ValueOf(permitted)
database/sql
convert.go#L361: sv = reflect.ValueOf(src)
convert.go#L371: sv = reflect.ValueOf(src)
convert.go#L377: sv = reflect.ValueOf(src)
convert.go#L397: dpv := reflect.ValueOf(dest)
convert.go#L406: sv = reflect.ValueOf(src)
convert.go#L413: dv.Set(reflect.ValueOf(bytes.Clone(b)))
convert.go#L505: rv := reflect.ValueOf(src)
convert.go#L554: if rv := reflect.ValueOf(vr); rv.Kind() == reflect.Pointer &&
database/sql/driver
types.go#L85: sv := reflect.ValueOf(src)
types.go#L113: rv := reflect.ValueOf(v)
types.go#L233: if rv := reflect.ValueOf(vr); rv.Kind() == reflect.Pointer &&
types.go#L262: rv := reflect.ValueOf(v)
encoding/asn1
asn1.go#L771: v.Set(reflect.ValueOf(result))
asn1.go#L971: val.Field(0).Set(reflect.ValueOf(RawContent(bytes)))
asn1.go#L993: reflect.Copy(val, reflect.ValueOf(innerBytes))
asn1.go#L1164: v := reflect.ValueOf(val)
marshal.go#L738: e, err := makeField(reflect.ValueOf(val), parseFieldParameters(params))
encoding/binary
binary.go#L272: v := reflect.ValueOf(data)
binary.go#L309: v := reflect.ValueOf(data)
binary.go#L423: v := reflect.Indirect(reflect.ValueOf(data))
binary.go#L452: v := reflect.Indirect(reflect.ValueOf(data))
binary.go#L479: v := reflect.Indirect(reflect.ValueOf(data))
binary.go#L689: return dataSize(reflect.Indirect(reflect.ValueOf(v)))
encoding/json
decode.go#L174: rv := reflect.ValueOf(v)
decode.go#L528: v.Set(reflect.ValueOf(ai))
decode.go#L623: v.Set(reflect.ValueOf(oi))
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#L343: e.reflectValue(reflect.ValueOf(v), opts)
encoding/xml
marshal.go#L172: err := enc.p.marshalValue(reflect.ValueOf(v), nil, nil)
marshal.go#L187: err := enc.p.marshalValue(reflect.ValueOf(v), nil, &start)
marshal.go#L805: reflect.Copy(reflect.ValueOf(bytes), val)
read.go#L148: val := reflect.ValueOf(v)
read.go#L299: val.Set(reflect.ValueOf(attr))
read.go#L430: v.Set(reflect.ValueOf(start.Name))
read.go#L457: fv.Set(reflect.ValueOf(start.Name))
read.go#L606: t.Set(reflect.ValueOf(comment))
read.go#L614: t.Set(reflect.ValueOf(saveXMLData))
flag
flag.go#L302: ptrVal := reflect.ValueOf(p)
flag.go#L306: defVal := reflect.ValueOf(val)
fmt
print.go#L545: p.printValue(reflect.ValueOf(v), verb, 0)
print.go#L592: if v := reflect.ValueOf(arg); v.Kind() == reflect.Pointer && v.IsNil() {
print.go#L702: p.fmtPointer(reflect.ValueOf(arg), 'p')
print.go#L759: p.printValue(reflect.ValueOf(f), verb, 0)
print.go#L940: switch v := reflect.ValueOf(a[argNum]); v.Kind() {
scan.go#L1018: val := reflect.ValueOf(v)
github.com/google/go-cmp/cmp
compare.go#L142: vx := reflect.ValueOf(x)
compare.go#L143: vy := reflect.ValueOf(y)
export.go#L28: return reflect.ValueOf(ve.Interface()).Convert(f.Type)
options.go#L142: return fmt.Sprintf("FilterPath(%s, %v)", function.NameOf(reflect.ValueOf(f.fnc)), f.opt)
options.go#L160: v := reflect.ValueOf(f)
options.go#L289: v := reflect.ValueOf(f)
options.go#L301: tr := &transformer{name: name, fnc: reflect.ValueOf(f)}
options.go#L356: v := reflect.ValueOf(f)
report_slices.go#L165: reflect.ValueOf(ssx), reflect.ValueOf(ssy), 1, "line",
report_slices.go#L255: reflect.ValueOf(sx), reflect.ValueOf(sy), 64, "byte",
report_slices.go#L267: reflect.ValueOf(sx), reflect.ValueOf(sy), 16, "byte",
report_value.go#L59: parent.Records = append(parent.Records, reportRecord{Key: reflect.ValueOf(s.Name()), Value: child})
github.com/google/go-cmp/cmp/internal/value
sort.go#L101: return reflect.ValueOf(vx.Type()).Pointer() < reflect.ValueOf(vy.Type()).Pointer()
github.com/jackc/pgx/v5
rows.go#L866: v := reflect.ValueOf(receiver).Elem()
github.com/jackc/pgx/v5/pgtype
convert.go#L8: dstPtr := reflect.ValueOf(dst)
convert.go#L41: dstPtr := reflect.ValueOf(dst)
json.go#L81: el := reflect.ValueOf(dst).Elem()
json.go#L163: rv := reflect.ValueOf(target)
json.go#L201: dstValue := reflect.ValueOf(dst)
json.go#L214: v := reflect.ValueOf(dst)
pgtype.go#L498: el := reflect.ValueOf(dst).Elem()
pgtype.go#L511: if dstValue := reflect.ValueOf(target); dstValue.Kind() == reflect.Ptr {
pgtype.go#L553: return plan.next.Scan(src, reflect.ValueOf(dst).Convert(plan.nextDstType).Interface())
pgtype.go#L563: dstValue := reflect.ValueOf(dst)
pgtype.go#L908: targetValue := reflect.ValueOf(target)
pgtype.go#L946: exportedFields: getExportedFieldValues(reflect.ValueOf(target).Elem()),
pgtype.go#L1003: return plan.next.Scan(src, &anySliceArrayReflect{slice: reflect.ValueOf(target).Elem()})
pgtype.go#L1008: targetValue := reflect.ValueOf(target)
pgtype.go#L1034: return plan.next.Scan(src, &anyMultiDimSliceArray{slice: reflect.ValueOf(target).Elem()})
pgtype.go#L1039: targetValue := reflect.ValueOf(target)
pgtype.go#L1059: return plan.next.Scan(src, &anyArrayArrayReflect{array: reflect.ValueOf(target).Elem()})
pgtype.go#L1353: ptr := reflect.ValueOf(value)
pgtype.go#L1403: return plan.next.Encode(reflect.ValueOf(value).Convert(plan.nextValueType).Interface(), buf)
pgtype.go#L1421: refValue := reflect.ValueOf(value)
pgtype.go#L1763: exportedFields := getExportedFieldValues(reflect.ValueOf(value))
pgtype.go#L1787: exportedFields: getExportedFieldValues(reflect.ValueOf(value)),
pgtype.go#L1831: slice: reflect.ValueOf(value),
pgtype.go#L1857: slice: reflect.ValueOf(value),
pgtype.go#L1868: sliceValue := reflect.ValueOf(value)
pgtype.go#L1875: slice: reflect.ValueOf(value),
pgtype.go#L1893: slice: reflect.ValueOf(value),
pgtype.go#L1906: array: reflect.ValueOf(value),
pgtype.go#L1922: array: reflect.ValueOf(value),
pgtype.go#L2028: refVal := reflect.ValueOf(value)
xml.go#L161: dstValue := reflect.ValueOf(dst)
xml.go#L174: elem := reflect.ValueOf(dst).Elem()
go.uber.org/mock/gomock
call.go#L116: v := reflect.ValueOf(f)
call.go#L134: vArgs[i] = reflect.ValueOf(args[i])
call.go#L157: v := reflect.ValueOf(f)
call.go#L175: vArgs[i] = reflect.ValueOf(args[i])
call.go#L212: v.Set(reflect.ValueOf(ret))
call.go#L264: v := reflect.ValueOf(value)
call.go#L271: reflect.ValueOf(args[n]).Elem().Set(v)
call.go#L385: vArgs = reflect.Append(vArgs, reflect.ValueOf(arg))
call.go#L462: t := reflect.ValueOf(arg)
call.go#L480: va := reflect.ValueOf(arg)
call.go#L487: va := reflect.ValueOf(arg)
controller.go#L171: recv := reflect.ValueOf(receiver)
matchers.go#L128: x1Val := reflect.ValueOf(e.x)
matchers.go#L129: x2Val := reflect.ValueOf(x)
matchers.go#L150: v := reflect.ValueOf(x)
matchers.go#L254: v := reflect.ValueOf(x)
matchers.go#L318: xValue := reflect.ValueOf(x)
go.uber.org/zap/zapcore
error.go#L55: if v := reflect.ValueOf(err); v.Kind() == reflect.Ptr && v.IsNil() {
field.go#L222: if v := reflect.ValueOf(stringer); v.Kind() == reflect.Ptr && v.IsNil() {
go/ast
print.go#L65: p.print(reflect.ValueOf(x))
golang.org/x/net/http2
server.go#L730: if rv := reflect.ValueOf(v); rv.Kind() == reflect.Uintptr {
golang.org/x/tools/internal/typesinternal
types.go#L20: v := reflect.ValueOf(conf).Elem()
types.go#L46: v := reflect.ValueOf(err)
google.golang.org/protobuf/internal/descfmt
stringer.go#L44: name = reflect.ValueOf(vs).MethodByName("Get").Type().Out(0).Name() + "s"
stringer.go#L46: name = reflect.ValueOf(vs).Elem().Type().Name()
stringer.go#L86: rv := reflect.ValueOf(vs.Get(i))
stringer.go#L99: m := reflect.ValueOf(vs).MethodByName("Get")
stringer.go#L100: v := m.Call([]reflect.Value{reflect.ValueOf(i)})[0].Interface()
stringer.go#L121: rv := reflect.ValueOf(t)
google.golang.org/protobuf/internal/impl
api_export.go#L42: return legacyWrapEnum(reflect.ValueOf(e))
api_export.go#L134: return legacyWrapMessage(reflect.ValueOf(m)).Interface()
api_export.go#L146: return legacyWrapMessage(reflect.ValueOf(m))
codec_map.go#L376: dstm.SetMapIndex(iter.Key(), reflect.ValueOf(append(emptyBuf[:], iter.Value().Bytes()...)))
convert.go#L157: return reflect.ValueOf(v.Bool()).Convert(c.goType)
convert.go#L181: return reflect.ValueOf(int32(v.Int())).Convert(c.goType)
convert.go#L205: return reflect.ValueOf(int64(v.Int())).Convert(c.goType)
convert.go#L229: return reflect.ValueOf(uint32(v.Uint())).Convert(c.goType)
convert.go#L253: return reflect.ValueOf(uint64(v.Uint())).Convert(c.goType)
convert.go#L277: return reflect.ValueOf(float32(v.Float())).Convert(c.goType)
convert.go#L301: return reflect.ValueOf(float64(v.Float())).Convert(c.goType)
convert.go#L331: return reflect.ValueOf(s).Convert(c.goType)
convert.go#L358: return reflect.ValueOf(v.Bytes()).Convert(c.goType)
convert.go#L393: return reflect.ValueOf(v.Enum()).Convert(c.goType)
convert.go#L442: rv = reflect.ValueOf(u.protoUnwrap())
convert.go#L444: rv = reflect.ValueOf(m.Interface())
convert.go#L466: rv = reflect.ValueOf(u.protoUnwrap())
convert.go#L468: rv = reflect.ValueOf(m.Interface())
enum.go#L19: return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(protoreflect.Enum)
extension.go#L99: return xi.lazyInit().PBValueOf(reflect.ValueOf(v))
extension.go#L108: return xi.lazyInit().IsValidGo(reflect.ValueOf(v))
legacy_enum.go#L209: suffix = fmt.Sprintf("UnknownX%X", reflect.ValueOf(t).Pointer())
message_reflect.go#L416: rv := reflect.ValueOf(m.protoUnwrap())
message_reflect_field.go#L248: nilBytes = reflect.ValueOf([]byte(nil))
message_reflect_field.go#L249: emptyBytes = reflect.ValueOf([]byte{})
gotest.tools/v3/assert/cmp
compare.go#L147: value := reflect.ValueOf(seq)
compare.go#L167: colValue := reflect.ValueOf(collection)
compare.go#L173: itemValue := reflect.ValueOf(item)
compare.go#L275: value := reflect.ValueOf(obj)
compare.go#L352: errValue := reflect.ValueOf(err)
compare.go#L363: errValue := reflect.ValueOf(err)
gotest.tools/v3/internal/assert
assert.go#L109: v := reflect.ValueOf(err)
html/template
content.go#L123: v := reflect.ValueOf(a)
content.go#L142: v := reflect.ValueOf(a)
js.go#L141: v := reflect.ValueOf(a)
internal/buildcfg
exp.go#L102: rv := reflect.ValueOf(&flags.Flags).Elem()
exp.go#L170: rv := reflect.ValueOf(exp).Elem()
exp.go#L173: rBase = reflect.ValueOf(base).Elem()
internal/fmtsort
sort.go#L127: c := compare(reflect.ValueOf(aVal.Elem().Type()), reflect.ValueOf(bVal.Elem().Type()))
log/slog
handler.go#L593: if v := reflect.ValueOf(v.any); v.Kind() == reflect.Pointer && v.IsNil() {
text_handler.go#L134: return reflect.ValueOf(a).Bytes(), true
net/http
h2_bundle.go#L4710: if rv := reflect.ValueOf(v); rv.Kind() == reflect.Uintptr {
h2_error.go#L14: dst := reflect.ValueOf(target).Elem()
h2_error.go#L19: src := reflect.ValueOf(e)
transfer.go#L1104: return reflect.ValueOf(r).Field(0).Interface().(io.Reader), true
transport.go#L406: if rv := reflect.ValueOf(altProto["https"]); rv.IsValid() && rv.Type().Kind() == reflect.Struct && rv.Type().NumField() == 1 {
net/http/httptrace
trace.go#L179: tv := reflect.ValueOf(t).Elem()
trace.go#L180: ov := reflect.ValueOf(old).Elem()
trace.go#L199: tfCopy := reflect.ValueOf(tf.Interface())
testing
fuzz.go#L222: fn := reflect.ValueOf(ff)
fuzz.go#L329: args := []reflect.Value{reflect.ValueOf(t)}
fuzz.go#L331: args = append(args, reflect.ValueOf(v))
text/template
exec.go#L95: var missingVal = reflect.ValueOf(missingValType{})
exec.go#L214: value = reflect.ValueOf(data)
exec.go#L321: return isTrue(reflect.ValueOf(val))
exec.go#L419: oneIteration(reflect.ValueOf(i), val.Index(i))
exec.go#L445: oneIteration(reflect.ValueOf(i), elem)
exec.go#L575: return reflect.ValueOf(word.True)
exec.go#L583: return reflect.ValueOf(word.Text)
exec.go#L600: return reflect.ValueOf(constant.Complex128) // incontrovertible.
exec.go#L605: return reflect.ValueOf(constant.Float64)
exec.go#L612: return reflect.ValueOf(n)
exec.go#L728: nameVal := reflect.ValueOf(fieldName)
exec.go#L866: argv = append([]reflect.Value{reflect.ValueOf(calleeName)}, argv...)
exec.go#L867: fun = reflect.ValueOf(call)
exec.go#L896: return reflect.ValueOf(nil)
exec.go#L905: return reflect.ValueOf(value)
exec.go#L970: return reflect.ValueOf(s.evalEmptyInterface(dot, n))
exec.go#L1050: return reflect.ValueOf(n.True)
exec.go#L1063: return reflect.ValueOf(n.Text)
funcs.go#L92: v := reflect.ValueOf(fn)
funcs.go#L775: a, ok := printableValue(reflect.ValueOf(arg))
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L277: if !s.readASN1Int64(&i) || reflect.ValueOf(out).Elem().OverflowInt(i) {
asn1.go#L280: reflect.ValueOf(out).Elem().SetInt(i)
asn1.go#L284: if !s.readASN1Uint64(&u) || reflect.ValueOf(out).Elem().OverflowUint(u) {
asn1.go#L287: reflect.ValueOf(out).Elem().SetUint(u)
asn1.go#L693: reflect.ValueOf(out).Elem().Set(reflect.ValueOf(defaultValue))