f80df6d4f1
Problem: currently when using a wildcard that covers multiple files in `operations:` YAML directive the generator emits functions in a non-stable ordering due to the use of map for storing file names: https://github.com/Khan/genqlient/blob/e0accbded177db9143314911bacedf61b2cda656/generate/parse.go#L68-L84 Solution: sort the operations before emitting them.
example of genqlient
Invoking the example
Create a personal access token with no scopes.
To run the example:
$ GITHUB_TOKEN=<your token> go run . <username>
you are Ben Kraft
csilvers is Craig Silverstein
Running genqlient
It's already checked in to GitHub, but to regenerate generated.go:
go generate ./...
Generating the schema file
The schema file is also checked in, but to update it, download from the GitHub API documentation.