Registry / http-client / cli-shurcool-graphql

cli-shurcool-graphql

JSON →
library0.0.4gogounverified

A GraphQL client library for Go, originally by shurcooL, maintained under the CLI organization.

go get github.com/cli/shurcooL-graphql
INSTALL
IMPORT
SIG · CLI-SHURCOOL-GRAPH
C
cli-shurcool-graphql
http-clientgov0.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

graphql
github.com/cli/shurcooL-graphql

Execute a GraphQL query to fetch the current user's login name.

package main import ( "context" "github.com/cli/shurcooL-graphql" "log" ) func main() { client := graphql.NewClient("https://api.github.com/graphql", nil) var query struct { Viewer struct { Login string } } err := client.Query(context.Background(), &query, nil) if err != nil { log.Fatal(err) } log.Printf("Logged in as: %s\n", query.Viewer.Login) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
22
Resources
cli-shurcool-graphql — go get cli-shurcool-graphql · libregistry