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

Function toGoFieldName

scripts/codegen/go.ts:111–116  ·  view source on GitHub ↗
(jsonName: string)

Source from the content-addressed store, hash-verified

109}
110
111function toGoFieldName(jsonName: string): string {
112 // Handle camelCase field names like "modelId" -> "ModelID"
113 return splitGoIdentifierWords(jsonName)
114 .map((w) => goIdentifierWord(w, true))
115 .join("");
116}
117
118function toGoUnexportedIdentifier(name: string): string {
119 const leadingSpecialCases = [

Callers 15

goRefTypeNameFunction · 0.85
sortByGoFieldNameFunction · 0.85
resolveGoPropertyTypeFunction · 0.85
emitGoStructFunction · 0.85
goJSONRawStructFieldsFunction · 0.85

Calls 3

splitGoIdentifierWordsFunction · 0.85
goIdentifierWordFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…