Try example without viewer

This commit is contained in:
Ben Kraft
2020-03-27 16:18:23 -07:00
parent 654a5c6795
commit 8df2900607
-6
View File
@@ -48,12 +48,6 @@ func Main() {
}
graphqlClient := graphql.NewClient("https://api.github.com/graphql", &httpClient)
viewerResp, err := getViewer(context.Background(), graphqlClient)
if err != nil {
return
}
fmt.Println("you are", *viewerResp.Viewer.MyName)
userResp, err := getUser(context.Background(), graphqlClient, username)
if err != nil {
return