Move 'Code generated by' disclaimer up (#161)
`Code generated by` disclaimer should be at the top of the file, as it is demonstrated in [this article](https://go.dev/blog/generate) on The Go Blog. The current placing breaks integration with some code formatters and linters which do no skip files generated by `genqlient`.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package {{.Config.Package}}
|
||||
|
||||
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
|
||||
|
||||
package {{.Config.Package}}
|
||||
|
||||
{{.Imports}}
|
||||
|
||||
{{if and (ne .Config.ContextType "-") (ne .Config.ContextType "context.Context") }}
|
||||
|
||||
Reference in New Issue
Block a user