chore: fix golint issues (#1396)

This commit is contained in:
Kevin Wan
2021-12-30 17:44:15 +08:00
committed by GitHub
parent b98d46bfd6
commit d6ff30a570
8 changed files with 16 additions and 31 deletions

View File

@@ -96,6 +96,7 @@ func isNumber(r rune) bool {
return '0' <= r && r <= '9'
}
// EscapeGolangKeyword escapes the golang keywords.
func EscapeGolangKeyword(s string) string {
if !isGolangKeyword(s) {
return s