func reflect.TypeOf
50 uses
reflect (current package)
type.go#L1296: func TypeOf(i any) Type {
type.go#L1895: Type: TypeOf(funcType{}),
type.go#L1899: Type: ArrayOf(n, TypeOf(&rtype{})),
type.go#L2553: {Name: "S", Type: TypeOf(structType{})},
type.go#L2554: {Name: "U", Type: TypeOf(uncommonType{})},
type.go#L2555: {Name: "M", Type: ArrayOf(len(methods), TypeOf(methods[0]))},
type.go#L3082: if t := TypeOf(v); t != nil {
type.go#L3085: return TypeOf((*T)(nil)).Elem() // only for an interface kind
encoding/asn1
asn1.go#L1117: return nil, &invalidUnmarshalError{reflect.TypeOf(val)}
encoding/binary
binary.go#L264: return errors.New("binary.Read: invalid type " + reflect.TypeOf(data).String())
binary.go#L301: return 0, errors.New("binary.Decode: invalid type " + reflect.TypeOf(data).String())
binary.go#L408: return errors.New("binary.Write: some values are not fixed-sized in type " + reflect.TypeOf(data).String())
binary.go#L437: return 0, errors.New("binary.Encode: some values are not fixed-sized in type " + reflect.TypeOf(data).String())
binary.go#L464: return nil, errors.New("binary.Append: some values are not fixed-sized in type " + reflect.TypeOf(data).String())
encoding/json
decode.go#L174: return &InvalidUnmarshalError{reflect.TypeOf(v)}
fmt
print.go#L388: p.buf.writeString(reflect.TypeOf(p.arg).String())
print.go#L699: p.fmt.fmtS(reflect.TypeOf(arg).String())
print.go#L1191: p.buf.writeString(reflect.TypeOf(arg).String())
print.go#L1203: isString := arg != nil && reflect.TypeOf(arg).Kind() == reflect.String
github.com/oapi-codegen/runtime
bindparam.go#L548: if t.ConvertibleTo(reflect.TypeOf(time.Time{})) {
bindparam.go#L551: if t.ConvertibleTo(reflect.TypeOf(types.Date{})) {
bindstring.go#L37: t := reflect.TypeOf(dst)
bindstring.go#L115: if t.ConvertibleTo(reflect.TypeOf(time.Time{})) {
bindstring.go#L132: if t != reflect.TypeOf(time.Time{}) {
bindstring.go#L134: vtPtr := vPtr.Convert(reflect.TypeOf(&time.Time{}))
bindstring.go#L141: if t.ConvertibleTo(reflect.TypeOf(types.Date{})) {
bindstring.go#L154: if t != reflect.TypeOf(types.Date{}) {
bindstring.go#L156: vtPtr := vPtr.Convert(reflect.TypeOf(&types.Date{}))
deepobject.go#L180: t := reflect.TypeOf(i)
deepobject.go#L236: if it.ConvertibleTo(reflect.TypeOf(types.Date{})) {
deepobject.go#L244: if it != reflect.TypeOf(types.Date{}) {
deepobject.go#L247: aPtr := ivPtr.Convert(reflect.TypeOf(&types.Date{}))
deepobject.go#L252: if it.ConvertibleTo(reflect.TypeOf(time.Time{})) {
deepobject.go#L266: if it != reflect.TypeOf(time.Time{}) {
deepobject.go#L269: aPtr := ivPtr.Convert(reflect.TypeOf(&time.Time{}))
styleparam.go#L57: t := reflect.TypeOf(value)
styleparam.go#L74: convertableToTime := t.ConvertibleTo(reflect.TypeOf(time.Time{}))
styleparam.go#L75: convertableToDate := t.ConvertibleTo(reflect.TypeOf(types.Date{}))
styleparam.go#L191: if t.ConvertibleTo(reflect.TypeOf(time.Time{})) {
styleparam.go#L192: tt := v.Convert(reflect.TypeOf(time.Time{}))
styleparam.go#L197: if t.ConvertibleTo(reflect.TypeOf(types.Date{})) {
styleparam.go#L198: d := v.Convert(reflect.TypeOf(types.Date{}))
styleparam.go#L203: if t.ConvertibleTo(reflect.TypeOf(types.UUID{})) {
styleparam.go#L204: u := v.Convert(reflect.TypeOf(types.UUID{}))
styleparam.go#L252: t := reflect.TypeOf(value)
styleparam.go#L458: return "", fmt.Errorf("unsupported type %s", reflect.TypeOf(value).String())
net/http
client.go#L336: if reflect.TypeOf(rt).String() == "*http2.Transport" {
transfer.go#L1094: var nopCloserType = reflect.TypeOf(io.NopCloser(nil))
transfer.go#L1095: var nopCloserWriterToType = reflect.TypeOf(io.NopCloser(struct {
transfer.go#L1103: switch reflect.TypeOf(r) {
 |
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. |