(index int, char rune)
| 732 | } |
| 733 | |
| 734 | func isValidRuneForGoID(index int, char rune) bool { |
| 735 | if index == 0 && unicode.IsNumber(char) { |
| 736 | return false |
| 737 | } |
| 738 | |
| 739 | return unicode.IsLetter(char) || char == '_' || unicode.IsNumber(char) |
| 740 | } |
| 741 | |
| 742 | // IsValidGoIdentity checks if the given string can be used as a |
| 743 | // name of variable, constant, or type. |
no outgoing calls
no test coverage detected