reflect.Type.Elem (method)
42 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#L1007: if ft.Kind() == Pointer && ft.Elem().Kind() == Struct {
type.go#L1008: ft = ft.Elem()
value.go#L2891: typesMustMatch("reflect.AppendSlice", s.Type().Elem(), t.Type().Elem())
value.go#L3147: s := unsafeheader.Slice{Data: unsafe_NewArray(&(typ.Elem().(*rtype).t), cap), Len: len, Cap: cap}
value.go#L3338: case vt.Kind() == Slice && t.Kind() == Pointer && t.Elem().Kind() == Array:
value.go#L3339: n := t.Elem().Len()
value.go#L3358: switch v.Type().Elem().Kind() {
value.go#L3433: if !v.Type().Elem().Comparable() {
value.go#L3723: n := t.Elem().Len()
visiblefields.go#L96: f.Type = f.Type.Elem()
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#L537: if sliceType.Elem().Kind() == reflect.Uint8 {
encoding/binary
binary.go#L479: if s := sizeof(v.Type().Elem()); s >= 0 {
binary.go#L505: if s := sizeof(t.Elem()); s >= 0 {
encoding/json
decode.go#L476: v.Set(reflect.New(v.Type().Elem()))
decode.go#L594: var textUnmarshalerType = reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).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#L932: if v.Type().Elem().Kind() != reflect.Uint8 {
encode.go#L374: marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem()
encode.go#L375: textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem()
encode.go#L775: me := mapEncoder{typeEncoder(t.Elem())}
encode.go#L828: if t.Elem().Kind() == reflect.Uint8 {
encode.go#L829: p := reflect.PointerTo(t.Elem())
encode.go#L855: enc := arrayEncoder{typeEncoder(t.Elem())}
encode.go#L883: enc := ptrEncoder{typeEncoder(t.Elem())}
encode.go#L926: t = t.Elem()
encode.go#L1103: t = t.Elem()
encode.go#L1130: ft = ft.Elem()
flag
flag.go#L310: if defVal.Type() != ptrVal.Type().Elem() {
flag.go#L311: panic(fmt.Sprintf("default type does not match variable type: %v != %v", defVal.Type(), ptrVal.Type().Elem()))
flag.go#L545: z = reflect.New(typ.Elem())
flag.go#L555: typ = typ.Elem()
fmt
print.go#L873: if t.Elem().Kind() == reflect.Uint8 {
scan.go#L1036: if typ.Elem().Kind() != reflect.Uint8 {
|
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. |