reflect.Value.Interface (method)
50 uses
reflect (current package)
type.go#L2408: copy(tt.Elem().Field(2).Slice(0, len(methods)).Interface().([]abi.Method), methods)
value.go#L1489: func (v Value) Interface() (i any) {
crypto/x509
verify.go#L517: constraint := excludedValue.Index(i).Interface()
verify.go#L537: constraint := permittedValue.Index(i).Interface()
encoding/asn1
asn1.go#L857: switch v := v.Addr().Interface().(type) {
marshal.go#L466: t := value.Interface().(time.Time)
marshal.go#L472: return bitStringEncoder(value.Interface().(BitString)), nil
marshal.go#L474: return makeObjectIdentifier(value.Interface().(ObjectIdentifier))
marshal.go#L476: return makeBigInt(value.Interface().(*big.Int))
marshal.go#L596: if reflect.DeepEqual(v.Interface(), defaultValue.Interface()) {
marshal.go#L605: if reflect.DeepEqual(v.Interface(), reflect.Zero(v.Type()).Interface()) {
marshal.go#L611: rv := v.Interface().(RawValue)
marshal.go#L656: if params.timeType == TagGeneralizedTime || outsideUTCRange(v.Interface().(time.Time)) {
encoding/json
decode.go#L479: if u, ok := v.Interface().(Unmarshaler); ok {
decode.go#L483: if u, ok := v.Interface().(encoding.TextUnmarshaler); ok {
encode.go#L437: m, ok := v.Interface().(Marshaler)
encode.go#L460: m := va.Interface().(Marshaler)
encode.go#L478: m, ok := v.Interface().(encoding.TextMarshaler)
encode.go#L496: m := va.Interface().(encoding.TextMarshaler)
encode.go#L871: ptr := v.Interface()
encode.go#L944: if tm, ok := w.k.Interface().(encoding.TextMarshaler); ok {
flag
flag.go#L560: return value == z.Interface().(Value).String(), nil
fmt
print.go#L748: p.arg = f.Interface()
print.go#L769: p.arg = value.Interface()
github.com/gotd/td/tdp
tdp.go#L35: i, ok := v.Interface().(Object)
tdp.go#L42: if buf, ok := v.Interface().([]byte); ok {
tdp.go#L70: b.WriteString(fmt.Sprint(v.Interface()))
go.opentelemetry.io/otel/attribute
set.go#L102: return value.Index(idx).Interface().(KeyValue), true
set.go#L117: return rValue.Index(idx).Interface().(KeyValue).Key >= k
set.go#L122: keyValue := rValue.Index(idx).Interface().(KeyValue)
set.go#L397: *(at.Index(i).Addr().Interface().(*KeyValue)) = keyValue
set.go#L399: return at.Interface()
value.go#L88: slice: cp.Elem().Interface(),
go.opentelemetry.io/otel/internal/attribute
attribute.go#L29: copy(cp.Elem().Slice(0, len(v)).Interface().([]bool), v)
attribute.go#L30: return cp.Elem().Interface()
attribute.go#L37: copy(cp.Elem().Slice(0, len(v)).Interface().([]int64), v)
attribute.go#L38: return cp.Elem().Interface()
attribute.go#L45: copy(cp.Elem().Slice(0, len(v)).Interface().([]float64), v)
attribute.go#L46: return cp.Elem().Interface()
attribute.go#L53: copy(cp.Elem().Slice(0, len(v)).Interface().([]string), v)
attribute.go#L54: return cp.Elem().Interface()
attribute.go#L68: return cpy.Elem().Slice(0, correctLen).Interface().([]bool)
attribute.go#L82: return cpy.Elem().Slice(0, correctLen).Interface().([]int64)
attribute.go#L96: return cpy.Elem().Slice(0, correctLen).Interface().([]float64)
attribute.go#L110: return cpy.Elem().Slice(0, correctLen).Interface().([]string)
net/http
transfer.go#L1088: return reflect.ValueOf(r).Field(0).Interface().(io.Reader), true
transport.go#L384: if h2i, ok := v.Interface().(h2Transport); ok {
net/http/httptrace
trace.go#L199: tfCopy := reflect.ValueOf(tf.Interface())
|
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. |