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 097a581 commit 54a72d9Copy full SHA for 54a72d9
src/go/doc/reader.go
@@ -809,6 +809,11 @@ func noteBodies(notes []*Note) []string {
809
// ----------------------------------------------------------------------------
810
// Predeclared identifiers
811
812
+// IsPredeclared reports whether s is a predeclared identifier.
813
+func IsPredeclared(s string) bool {
814
+ return predeclaredTypes[s] || predeclaredFuncs[s] || predeclaredConstants[s]
815
+}
816
+
817
var predeclaredTypes = map[string]bool{
818
"bool": true,
819
"byte": true,
0 commit comments