rename in code

This commit is contained in:
Ben Kraft
2021-03-30 12:41:37 -07:00
parent db3ee65854
commit cbebeaaed4
26 changed files with 46 additions and 46 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
# example of genql
# example of genqlient
## Getting a token
Get a token from [GitHub](https://github.com/settings/tokens/new) (no scopes needed).
@@ -13,7 +13,7 @@ you are Ben Kraft
csilvers is Craig Silverstein
```
## Running genql
## Running genqlient
It's already checked in to github, but to generate `generated.go`:
```sh
+2 -2
View File
@@ -6,7 +6,7 @@ import (
"net/http"
"os"
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type authedTransport struct {
@@ -61,4 +61,4 @@ func Main() {
fmt.Println(username, "is", userResp.User.TheirName)
}
//go:generate go run github.com/Khan/genql genql.yaml
//go:generate go run github.com/Khan/genqlient genqlient.yaml
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
example "github.com/Khan/genql/example"
example "github.com/Khan/genqlient/example"
)
func main() {
+2 -2
View File
@@ -1,11 +1,11 @@
package example
// Code generated by github.com/Khan/genql, DO NOT EDIT.
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"context"
"github.com/Khan/genql/graphql"
"github.com/Khan/genqlient/graphql"
)
type getUserResponse struct {