rename in code
This commit is contained in:
+2
-2
@@ -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
@@ -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,7 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
example "github.com/Khan/genql/example"
|
||||
example "github.com/Khan/genqlient/example"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user