aboutsummaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/reflectlite/type.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/internal/reflectlite/type.go b/src/internal/reflectlite/type.go
index faecb8755d..3375464647 100644
--- a/src/internal/reflectlite/type.go
+++ b/src/internal/reflectlite/type.go
@@ -47,6 +47,13 @@ type Type interface {
// Comparable reports whether values of this type are comparable.
Comparable() bool
+ // String returns a string representation of the type.
+ // The string representation may use shortened package names
+ // (e.g., base64 instead of "encoding/base64") and is not
+ // guaranteed to be unique among types. To test for type identity,
+ // compare the Types directly.
+ String() string
+
// Elem returns a type's element type.
// It panics if the type's Kind is not Ptr.
Elem() Type