(word: string, normalizeRest = false)
| 85 | const wrapGoCommentText = wordwrap(goCommentTextWrapLength); |
| 86 | |
| 87 | function goIdentifierWord(word: string, normalizeRest = false): string { |
| 88 | const lower = word.toLowerCase(); |
| 89 | const override = goIdentifierCasingOverrides.get(lower); |
| 90 | if (override) return override; |
| 91 | if (goInitialisms.has(lower)) return word.toUpperCase(); |
| 92 | return word.charAt(0).toUpperCase() + (normalizeRest ? word.slice(1).toLowerCase() : word.slice(1)); |
| 93 | } |
| 94 | |
| 95 | function toPascalCase(s: string): string { |
| 96 | return s |
no test coverage detected
searching dependent graphs…