move a bunch of the logic from generated into client
This commit is contained in:
+4
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user