Skip to content

Commit

Permalink
go: use standard header in generated file
Browse files Browse the repository at this point in the history
Use the standard header for Go generated files, following the spec at
https://golang.org/s/generatedcode.

The template go/dialects_builtin.go.jq is fixed and
go/dialects_builtin.go is regenerated.
  • Loading branch information
dolmen committed Jul 12, 2023
1 parent 8bc37b8 commit 64dbed9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions go/dialects_builtin.go

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

3 changes: 2 additions & 1 deletion go/dialects_builtin.go.jq
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
]
| add
)
| "package gherkin\n\n"
| "// Code generated from dialects_builtin.go.jq (make dialects_builtin.go); DO NOT EDIT.\n\n" # Standard header defined at https://golang.org/s/generatedcode
+ "package gherkin\n\n"
+ "import messages \"github.com/cucumber/messages/go/v21\"\n\n"
+ "// Builtin dialects for " + ([ $root | to_entries[] | .key+" ("+.value.name+")" ] | join(", ")) + "\n"
+ "func DialectsBuiltin() DialectProvider {\n"
Expand Down

0 comments on commit 64dbed9

Please sign in to comment.