reflect.Type.Elem (method)
45 uses
reflect (current package)
deepequal.go#L109: if v1.Type().Elem().Kind() == Uint8 {
swapper.go#L35: typ := v.Type().Elem().common()
type.go#L160: Elem() Type
type.go#L1150: if ft.Kind() == Pointer && ft.Elem().Kind() == Struct {
type.go#L1151: ft = ft.Elem()
type.go#L2301: elem := t.Elem()
type.go#L3085: return TypeOf((*T)(nil)).Elem() // only for an interface kind
value.go#L2963: typesMustMatch("reflect.AppendSlice", s.Type().Elem(), t.Type().Elem())
value.go#L3219: s := unsafeheader.Slice{Data: unsafe_NewArray(&(typ.Elem().(*rtype).t), cap), Len: len, Cap: cap}
value.go#L3404: case vt.Kind() == Slice && t.Kind() == Pointer && t.Elem().Kind() == Array:
value.go#L3405: n := t.Elem().Len()
value.go#L3424: switch v.Type().Elem().Kind() {
value.go#L3499: if !v.Type().Elem().Comparable() {
value.go#L3789: n := t.Elem().Len()
visiblefields.go#L96: f.Type = f.Type.Elem()
database/sql/driver
types.go#L235: rv.Type().Elem().Implements(valuerReflectType) {
types.go#L286: ek := rv.Type().Elem().Kind()
encoding/asn1
asn1.go#L949: if sliceType.Elem().Kind() == reflect.Uint8 {
asn1.go#L954: newSlice, err1 := parseSequenceOf(innerBytes, sliceType, sliceType.Elem())
common.go#L174: if t.Elem().Kind() == reflect.Uint8 {
marshal.go#L534: if sliceType.Elem().Kind() == reflect.Uint8 {
encoding/binary
binary.go#L683: t := v.Type().Elem()
binary.go#L718: if s := sizeof(t.Elem()); s >= 0 {
encoding/json
decode.go#L476: v.Set(reflect.New(v.Type().Elem()))
decode.go#L685: elemType := t.Elem()
decode.go#L709: d.saveError(fmt.Errorf("json: cannot set embedded pointer to unexported struct: %v", subv.Type().Elem()))
decode.go#L716: subv.Set(reflect.New(subv.Type().Elem()))
decode.go#L934: if v.Type().Elem().Kind() != reflect.Uint8 {
encode.go#L788: me := mapEncoder{typeEncoder(t.Elem())}
encode.go#L837: if t.Elem().Kind() == reflect.Uint8 {
encode.go#L838: p := reflect.PointerTo(t.Elem())
encode.go#L864: enc := arrayEncoder{typeEncoder(t.Elem())}
encode.go#L892: enc := ptrEncoder{typeEncoder(t.Elem())}
encode.go#L935: t = t.Elem()
encode.go#L1102: t = t.Elem()
encode.go#L1129: ft = ft.Elem()
fmt
print.go#L873: if t.Elem().Kind() == reflect.Uint8 {
scan.go#L1036: if typ.Elem().Kind() != reflect.Uint8 {
github.com/oapi-codegen/runtime
bindform.go#L133: ptrData = reflect.New(v.Type().Elem())
bindform.go#L236: valueType := additionalProperties.Type().Elem()
bindparam.go#L334: newValue := reflect.New(t.Elem())
bindstring.go#L48: v.Set(reflect.New(t.Elem()))
deepobject.go#L207: dstVal := reflect.New(iv.Type().Elem())
deepobject.go#L296: dstVal := reflect.New(it.Elem())
![]() |
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. |