diff --git a/src/reflect/type.go b/src/reflect/type.go index c7c05cecc..d91d6faf8 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -923,7 +923,11 @@ func (t *rawType) Name() string { return readStringZ(unsafe.Pointer(&ntype.name[0])) } - return t.Kind().String() + if t.Kind() <= UnsafePointer { + return t.Kind().String() + } + + return "" } func (t *rawType) Key() Type {