Skip to content

Commit

Permalink
Match go recommended header (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
abice authored Jul 7, 2021
1 parent b593b64 commit cd5e40d
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 32 deletions.
3 changes: 1 addition & 2 deletions example/animal_enum.go

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

3 changes: 1 addition & 2 deletions example/color_enum.go

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

3 changes: 1 addition & 2 deletions example/commented_enum.go

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

3 changes: 1 addition & 2 deletions example/custom_prefix_enum.go

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

3 changes: 1 addition & 2 deletions example/example_enum.go

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

3 changes: 1 addition & 2 deletions example/sql_enum.go

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

3 changes: 1 addition & 2 deletions example/sql_int_enum.go

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

3 changes: 1 addition & 2 deletions example/sql_str_enum.go

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

3 changes: 1 addition & 2 deletions example/user_template_enum.go

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

5 changes: 2 additions & 3 deletions generator/.snapshots/generator-TestCustomPrefixExampleFile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
([]string) (len=3052) {
(string) (len=28) "// Code generated by go-enum",
(string) (len=15) "// DO NOT EDIT!",
([]string) (len=3051) {
(string) (len=41) "// Code generated by go-enum DO NOT EDIT.",
(string) "",
(string) (len=17) "package generator",
(string) "",
Expand Down
5 changes: 2 additions & 3 deletions generator/.snapshots/generator-TestExampleFile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
([]string) (len=1824) {
(string) (len=28) "// Code generated by go-enum",
(string) (len=15) "// DO NOT EDIT!",
([]string) (len=1823) {
(string) (len=41) "// Code generated by go-enum DO NOT EDIT.",
(string) "",
(string) (len=17) "package generator",
(string) "",
Expand Down
5 changes: 2 additions & 3 deletions generator/.snapshots/generator-TestNoPrefixExampleFile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
([]string) (len=990) {
(string) (len=28) "// Code generated by go-enum",
(string) (len=15) "// DO NOT EDIT!",
([]string) (len=989) {
(string) (len=41) "// Code generated by go-enum DO NOT EDIT.",
(string) "",
(string) (len=17) "package generator",
(string) "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
([]string) (len=990) {
(string) (len=28) "// Code generated by go-enum",
(string) (len=15) "// DO NOT EDIT!",
([]string) (len=989) {
(string) (len=41) "// Code generated by go-enum DO NOT EDIT.",
(string) "",
(string) (len=17) "package generator",
(string) "",
Expand Down
3 changes: 1 addition & 2 deletions generator/enum.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{{- define "header"}}
// Code generated by go-enum
// DO NOT EDIT!
// Code generated by go-enum DO NOT EDIT.

package {{.package}}

Expand Down

0 comments on commit cd5e40d

Please sign in to comment.