fixReservedGo appends an underscore on to Go reserved keywords.
(w string)
| 56 | |
| 57 | // fixReservedGo appends an underscore on to Go reserved keywords. |
| 58 | func fixReservedGo(w string) string { |
| 59 | if doc.IsPredeclared(w) || token.IsKeyword(w) || isPackage[w] { |
| 60 | w += "_" |
| 61 | } |
| 62 | return w |
| 63 | } |
| 64 | |
| 65 | var ( |
| 66 | isPackage = map[string]bool{ |
no outgoing calls