IsPredeclaredGoIdentifier returns whether the given string is a predefined go identifier. See https://golang.org/ref/spec#Predeclared_identifiers
(str string)
| 713 | // |
| 714 | // See https://golang.org/ref/spec#Predeclared_identifiers |
| 715 | func IsPredeclaredGoIdentifier(str string) bool { |
| 716 | _, exists := predeclaredSet[str] |
| 717 | return exists |
| 718 | } |
| 719 | |
| 720 | // IsGoIdentity checks if the given string can be used as an identity |
| 721 | // in the generated code like a type name or constant name. |
no outgoing calls
no test coverage detected