Skip to content

Commit 8c5e495

Browse files
fix: json tag formatting for Go (#2431)
fix(go generator): json tag formatting in CommonPreset.ts
1 parent 731b41d commit 8c5e495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generators/go/presets/CommonPreset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const GO_COMMON_PRESET: GoPreset<GoCommonPresetOptions> = {
7272
},
7373
union: {
7474
field: ({ content }) => {
75-
return `${content} \`json:"-,omitempty\``;
75+
return `${content} \`json:"-,omitempty"\``;
7676
}
7777
}
7878
};

0 commit comments

Comments
 (0)