mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
chore: fix golint issues (#1396)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user