Files
Adam Babik f0c2ac17a9 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`.
2021-12-20 10:04:13 -05:00

11 lines
341 B
Cheetah

// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package {{.Config.Package}}
{{.Imports}}
{{if and (ne .Config.ContextType "-") (ne .Config.ContextType "context.Context") }}
// Check that context_type from genqlient.yaml implements context.Context.
var _ {{ref "context.Context"}} = ({{ref .Config.ContextType}})(nil)
{{end}}