reflect: tweak Type.String() for interfaces to make encoding/xml happy

This commit is contained in:
Damian Gryski
2023-03-19 08:43:24 -07:00
committed by Damian Gryski
parent 8fb5877d9e
commit 57b0c21492
+3
View File
@@ -542,6 +542,9 @@ func (t *rawType) String() string {
}
s += " }"
return s
case Interface:
// TODO(dgryski): Needs actual method set info
return "interface {}"
default:
return t.Kind().String()
}