f0c2ac17a9
`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`.
11 lines
341 B
Cheetah
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}}
|