Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ld
go-ld-prime
Commits
1dfcc6db
Commit
1dfcc6db
authored
Jul 30, 2020
by
Eric Myhre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slight improvement to whitespace output control.
parent
5f589653
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
schema/gen/go/genStruct.go
schema/gen/go/genStruct.go
+6
-2
No files found.
schema/gen/go/genStruct.go
View file @
1dfcc6db
...
...
@@ -428,7 +428,9 @@ func (g structBuilderGenerator) emitMapAssemblerMethods(w io.Writer) {
{{- if $field.IsMaybe }}
ma.ca_{{ $field | FieldSymbolLower }}.w = {{if not (MaybeUsesPtr $field.Type) }}&{{end}}ma.w.{{ $field | FieldSymbolLower }}.v
ma.ca_{{ $field | FieldSymbolLower }}.m = &ma.w.{{ $field | FieldSymbolLower }}.m
{{if $field.IsNullable }}ma.w.{{ $field | FieldSymbolLower }}.m = allowNull{{end}}
{{- if $field.IsNullable }}
ma.w.{{ $field | FieldSymbolLower }}.m = allowNull
{{- end}}
{{- else}}
ma.ca_{{ $field | FieldSymbolLower }}.w = &ma.w.{{ $field | FieldSymbolLower }}
ma.ca_{{ $field | FieldSymbolLower }}.m = &ma.cm
...
...
@@ -477,7 +479,9 @@ func (g structBuilderGenerator) emitMapAssemblerMethods(w io.Writer) {
{{- if $field.IsMaybe }}
ma.ca_{{ $field | FieldSymbolLower }}.w = {{if not (MaybeUsesPtr $field.Type) }}&{{end}}ma.w.{{ $field | FieldSymbolLower }}.v
ma.ca_{{ $field | FieldSymbolLower }}.m = &ma.w.{{ $field | FieldSymbolLower }}.m
{{if $field.IsNullable }}ma.w.{{ $field | FieldSymbolLower }}.m = allowNull{{end}}
{{- if $field.IsNullable }}
ma.w.{{ $field | FieldSymbolLower }}.m = allowNull
{{- end}}
{{- else}}
ma.ca_{{ $field | FieldSymbolLower }}.w = &ma.w.{{ $field | FieldSymbolLower }}
ma.ca_{{ $field | FieldSymbolLower }}.m = &ma.cm
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment