We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76f0ba3 commit 3b52147Copy full SHA for 3b52147
src/reflect/type.go
@@ -127,6 +127,11 @@ type Method struct {
127
Index int // index for Type.Method
128
}
129
130
+// IsExported reports whether the method is exported.
131
+func (m Method) IsExported() bool {
132
+ return m.PkgPath == ""
133
+}
134
+
135
// The following Type type has been copied almost entirely from
136
// https://github.com/golang/go/blob/go1.15/src/reflect/type.go#L27-L212.
137
// Some methods have been commented out as they haven't yet been implemented.
0 commit comments