reflect.Value.Convert (method)
32 uses
reflect (current package)
value.go#L3070: func (v Value) Convert(t Type) Value {
database/sql
convert.go#L412: dv.Set(sv.Convert(dv.Type()))
encoding/json
decode.go#L792: kv = reflect.ValueOf(key).Convert(kt)
decode.go#L802: kv = reflect.ValueOf(n).Convert(kt)
decode.go#L810: kv = reflect.ValueOf(n).Convert(kt)
github.com/go-pg/pg/v10/types
array_append.go#L107: ss := v.Convert(sliceStringType).Interface().([]string)
array_append.go#L140: ints := v.Convert(sliceIntType).Interface().([]int)
array_append.go#L173: ints := v.Convert(sliceInt64Type).Interface().([]int64)
array_append.go#L206: floats := v.Convert(sliceFloat64Type).Interface().([]float64)
hstore_append.go#L48: m := v.Convert(mapStringStringType).Interface().(map[string]string)
github.com/golang/mock/gomock
matchers.go#L115: x1ValConverted := x1Val.Convert(x2Val.Type())
github.com/google/go-cmp/cmp
export_unsafe.go#L33: return reflect.ValueOf(ve.Interface()).Convert(f.Type)
github.com/vmihailenco/msgpack/v5
decode_map.go#L91: mptr := v.Addr().Convert(mapStringStringPtrType).Interface().(*map[string]string)
decode_map.go#L127: ptr := v.Addr().Convert(mapStringInterfacePtrType).Interface().(*map[string]interface{})
decode_slice.go#L39: ptr := v.Addr().Convert(sliceStringPtrType).Interface().(*[]string)
encode_map.go#L42: m := v.Convert(mapStringStringType).Interface().(map[string]string)
encode_map.go#L63: m := v.Convert(mapStringInterfaceType).Interface().(map[string]interface{})
encode_slice.go#L102: ss := v.Convert(stringSliceType).Interface().([]string)
google.golang.org/protobuf/internal/impl
convert.go#L158: return reflect.ValueOf(v.Bool()).Convert(c.goType)
convert.go#L182: return reflect.ValueOf(int32(v.Int())).Convert(c.goType)
convert.go#L206: return reflect.ValueOf(int64(v.Int())).Convert(c.goType)
convert.go#L230: return reflect.ValueOf(uint32(v.Uint())).Convert(c.goType)
convert.go#L254: return reflect.ValueOf(uint64(v.Uint())).Convert(c.goType)
convert.go#L278: return reflect.ValueOf(float32(v.Float())).Convert(c.goType)
convert.go#L302: return reflect.ValueOf(float64(v.Float())).Convert(c.goType)
convert.go#L323: return protoreflect.ValueOfString(v.Convert(stringType).String())
convert.go#L332: return reflect.ValueOf(s).Convert(c.goType)
convert.go#L356: return protoreflect.ValueOfBytes(v.Convert(bytesType).Bytes())
convert.go#L359: return reflect.ValueOf(v.Bytes()).Convert(c.goType)
convert.go#L394: return reflect.ValueOf(v.Enum()).Convert(c.goType)
enum.go#L19: return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(protoreflect.Enum)
text/template
funcs.go#L169: value = value.Convert(argType)
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)