reflect.Value.Interface (method)
51 uses
reflect (current package)
type.go#L2561: copy(tt.Elem().Field(2).Slice(0, len(methods)).Interface().([]abi.Method), methods)
value.go#L1483: func (v Value) Interface() (i any) {
crypto/x509
verify.go#L525: constraint := excludedValue.Index(i).Interface()
verify.go#L545: constraint := permittedValue.Index(i).Interface()
database/sql/driver
types.go#L269: return defaultConverter{}.ConvertValue(rv.Elem().Interface())
encoding/asn1
asn1.go#L857: switch v := v.Addr().Interface().(type) {
marshal.go#L463: t := value.Interface().(time.Time)
marshal.go#L469: return bitStringEncoder(value.Interface().(BitString)), nil
marshal.go#L471: return makeObjectIdentifier(value.Interface().(ObjectIdentifier))
marshal.go#L473: return makeBigInt(value.Interface().(*big.Int))
marshal.go#L593: if reflect.DeepEqual(v.Interface(), defaultValue.Interface()) {
marshal.go#L602: if reflect.DeepEqual(v.Interface(), reflect.Zero(v.Type()).Interface()) {
marshal.go#L608: rv := v.Interface().(RawValue)
marshal.go#L653: 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#L436: m, ok := v.Interface().(Marshaler)
encode.go#L459: m := va.Interface().(Marshaler)
encode.go#L477: m, ok := v.Interface().(encoding.TextMarshaler)
encode.go#L495: m := va.Interface().(encoding.TextMarshaler)
encode.go#L880: ptr := v.Interface()
encode.go#L951: if tm, ok := k.Interface().(encoding.TextMarshaler); ok {
fmt
print.go#L748: p.arg = f.Interface()
print.go#L769: p.arg = value.Interface()
github.com/oapi-codegen/runtime
bindform.go#L72: if err := BindStyledParameterWithOptions(encoding.Style, tag, value, field.Addr().Interface(), BindStyledParameterOptions{
bindform.go#L142: if _, ok := v.Interface().([]types.File); ok {
bindform.go#L161: if err := BindStringToObject(item, result.Index(indexedElementsCount+i).Addr().Interface()); err != nil {
bindform.go#L170: if file, ok := v.Interface().(types.File); ok {
bindform.go#L200: return true, BindStringToObject(value[0], v.Addr().Interface())
bindform.go#L316: result[name] = append(result[name], fmt.Sprint(v.Interface()))
bindparam.go#L242: err := BindStringToObject(p, newArray.Index(i).Addr().Interface())
bindparam.go#L338: output = newValue.Interface()
bindparam.go#L341: output = v.Interface()
bindparam.go#L524: err := BindStringToObject(fieldVal[0], v.Field(i).Addr().Interface())
bindparam.go#L538: if u, ok := v.Interface().(Binder); ok {
deepobject.go#L208: err := assignPathValues(dstVal.Interface(), value)
deepobject.go#L232: if dst, isBinder := v.Interface().(Binder); isBinder {
deepobject.go#L274: fieldMap, err := fieldIndicesByJSONTag(iv.Interface())
deepobject.go#L285: err = assignPathValues(field.Addr().Interface(), fieldValue)
deepobject.go#L297: dstPtr := dstVal.Interface()
deepobject.go#L355: err := assignPathValues(dstElem.Interface(), fieldOrValue{value: values[i]})
styleparam.go#L94: sliceVal[i] = v.Index(i).Interface()
styleparam.go#L193: timeVal := tt.Interface().(time.Time)
styleparam.go#L199: dateVal := d.Interface().(types.Date)
styleparam.go#L205: uuidVal := u.Interface().(types.UUID)
styleparam.go#L274: str, err := primitiveToString(f.Interface())
net/http
transfer.go#L1105: 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.7.6. (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. |