diff --git a/src/server/templates/go.ts b/src/server/templates/go.ts index 46fd5d82..f7e6593b 100644 --- a/src/server/templates/go.ts +++ b/src/server/templates/go.ts @@ -102,7 +102,13 @@ ${compositeTypes function formatForGoTypeName(name: string): string { return name .split(/[^a-zA-Z0-9]/) - .map((word) => `${word[0].toUpperCase()}${word.slice(1)}`) + .map((word) => { + if (word) { + return `${word[0].toUpperCase()}${word.slice(1)}` + } else { + return '' + } + }) .join('') }