move a bunch of the logic from generated into client

This commit is contained in:
Ben Kraft
2019-12-25 16:26:32 -05:00
parent 9d4b5559f4
commit 4d880a701e
7 changed files with 99 additions and 99 deletions
+4 -1
View File
@@ -4,10 +4,13 @@ import (
"context"
"fmt"
"os"
"github.com/Khan/genql/graphql"
)
func Main() {
resp, err := getViewer(context.Background())
client := graphql.NewClient("https://api.github.com/graphql", nil)
resp, err := getViewer(context.Background(), client)
if err != nil {
fmt.Println(err)
os.Exit(1)