reflect.Type.Name (method)
29 uses
reflect (current package)
type.go#L80: Name() string
type.go#L1653: if T.Name() != V.Name() || T.Kind() != V.Kind() || T.PkgPath() != V.PkgPath() {
value.go#L1283: return Value{}, errors.New("reflect: indirection through nil pointer to embedded struct field " + v.typ.Elem().Name())
encoding/asn1
asn1.go#L842: err = StructuralError{fmt.Sprintf("tags don't match (%d vs %+v) %+v %s @%d", expectedTag, t, params, fieldType.Name(), offset)}
common.go#L177: if strings.HasSuffix(t.Name(), "SET") {
encoding/json
decode.go#L256: err.Struct = d.errorContext.Struct.Name()
decode.go#L443: if v.Kind() != reflect.Pointer && v.Type().Name() != "" && v.CanAddr() {
encode.go#L1272: if ft.Name() == "" && ft.Kind() == reflect.Pointer {
encode.go#L1329: next = append(next, field{name: ft.Name(), index: index, typ: ft})
encoding/xml
marshal.go#L496: name := typ.Name()
marshal.go#L652: } else if typ.Name() != "" {
marshal.go#L653: start.Name.Local = typ.Name()
marshal.go#L657: start.Name.Local = typ.Elem().Name()
read.go#L193: if t.Name() != "" {
github.com/go-pg/pg/v10/orm
table.go#L99: t.TypeName = internal.ToExported(t.Type.Name())
table.go#L100: t.ModelName = internal.Underscore(t.Type.Name())
github.com/golang/mock/gomock
matchers.go#L168: return "is assignable to " + m.targetType.Name()
github.com/google/go-cmp/cmp
options.go#L232: if t := s.curPath.Index(-2).Type(); t.Name() != "" {
options.go#L234: name = fmt.Sprintf("%q.%v", t.PkgPath(), t.Name()) // e.g., "path/to/package".MyType
report_reflect.go#L72: if t.Name() == "" {
report_reflect.go#L295: if v.Type().Name() == "" {
report_slices.go#L36: case v.NumCompared == 1 && v.Type.Name() != "":
github.com/google/go-cmp/cmp/internal/value
name.go#L31: if t.Name() != "" {
name.go#L37: b = append(b, t.Name()...)
google.golang.org/protobuf/internal/descfmt
stringer.go#L44: name = reflect.ValueOf(vs).MethodByName("Get").Type().Out(0).Name() + "s"
stringer.go#L46: name = reflect.ValueOf(vs).Elem().Type().Name()
stringer.go#L128: start = rt.Name() + "{"
google.golang.org/protobuf/internal/impl
legacy_enum.go#L206: suffix := strings.Map(sanitize, t.Name())