Skip to content

Commit

Permalink
fix(go): make sure boolean types are created as pointer types
Browse files Browse the repository at this point in the history
  • Loading branch information
Nkmol committed Apr 30, 2024
1 parent 4c7a000 commit 528db9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/handlebars/go/model.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type {{classname}} struct {
{{#description}}
// {{{description}}}
{{/description}}
{{name}} {{^isEnum}}{{^isPrimitiveType}}{{^isContainer}}{{^isDateTime}}*{{/isDateTime}}{{/isContainer}}{{/isPrimitiveType}}{{/isEnum}}{{{datatype}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}"{{/withXml}}`
{{name}} {{^isEnum}}{{^isPrimitiveType}}{{^isContainer}}{{^isDateTime}}*{{/isDateTime}}{{/isContainer}}{{/isPrimitiveType}}{{/isEnum}}{{#isBoolean}}*{{/isBoolean}}{{{datatype}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}"{{/withXml}}`
{{/vars}}
{{/isComposedModel}}
}{{/isEnum}}{{/model}}{{/models}}

0 comments on commit 528db9f

Please sign in to comment.