Skip to content

Commit

Permalink
Clean up enum spacing
Browse files Browse the repository at this point in the history
Don't separate enum values by newlines.
  • Loading branch information
marcinromaszewicz committed May 18, 2022
1 parent 16462d2 commit 4849ecb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 49 deletions.
44 changes: 14 additions & 30 deletions internal/test/components/components.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 8 additions & 16 deletions internal/test/issues/issue-illegal_enum_names/issue.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions internal/test/schemas/schemas.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/codegen/templates/constants.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const (
// Defines values for {{$Enum.TypeName}}.
const (
{{range $name, $value := $Enum.GetValues}}
{{$name}} {{$Enum.TypeName}} = {{$Enum.ValueWrapper}}{{$value}}{{$Enum.ValueWrapper}}
{{$name}} {{$Enum.TypeName}} = {{$Enum.ValueWrapper}}{{$value}}{{$Enum.ValueWrapper -}}
{{end}}
)
{{end}}

0 comments on commit 4849ecb

Please sign in to comment.