MCPcopy Index your code
hub / github.com/github/copilot-sdk / goIdentifierWord

Function goIdentifierWord

scripts/codegen/go.ts:87–93  ·  view source on GitHub ↗
(word: string, normalizeRest = false)

Source from the content-addressed store, hash-verified

85const wrapGoCommentText = wordwrap(goCommentTextWrapLength);
86
87function 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
95function toPascalCase(s: string): string {
96 return s

Callers 4

toPascalCaseFunction · 0.85
toGoFieldNameFunction · 0.85
goEnumConstSuffixFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…