Skip to content

Commit 1a28096

Browse files
committed
fix #96, not package interface register error Name
1 parent 9af26f1 commit 1a28096

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: type.go

+3
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ func resolveTypeName(typ *_type) string {
157157
if pkgPath != EmptyString && name != EmptyString {
158158
return pkgPath + "." + name
159159
}
160+
if name != EmptyString && typ.Kind() != reflect.UnsafePointer {
161+
return name
162+
}
160163
//golang <= 1.16 map.bucket has a self-contained struct field
161164
if strings.HasPrefix(typ.String(), "map.bucket[") {
162165
return typ.String()

0 commit comments

Comments
 (0)