Skip to content

Commit

Permalink
Merge pull request #16 from abice/SanitizeValues
Browse files Browse the repository at this point in the history
Added value name sanitization for valid go identifiers
  • Loading branch information
abice authored Apr 18, 2018
2 parents 872ef8d + 947ac96 commit 5d428ee
Show file tree
Hide file tree
Showing 10 changed files with 365 additions and 138 deletions.
2 changes: 2 additions & 0 deletions example/color.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ Green = 33
// Blue
// grey=
// yellow
// blue-green
// red-orange
// )
type Color int
12 changes: 11 additions & 1 deletion example/color_enum.go

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

4 changes: 2 additions & 2 deletions example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ package example
type X struct {
}

// Model x ENUM(Toyota,_,Chevy,_,Ford,_,Tesla,_,Hyundai,_,Nissan,_,Jaguar,_,Audi,_,BMW,_,Mercedes,_,Volkswagon)
type Model int32
// Make x ENUM(Toyota,_,Chevy,_,Ford,_,Tesla,_,Hyundai,_,Nissan,_,Jaguar,_,Audi,_,BMW,_,Mercedes-Benz,_,Volkswagon)
type Make int32
148 changes: 74 additions & 74 deletions example/example_enum.go

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

Loading

0 comments on commit 5d428ee

Please sign in to comment.