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/shurcooL/graphql
Execute a simple GraphQL query.
package main
import (
"context"
"fmt"
"github.com/shurcooL/graphql"
)
func main() {
client := graphql.NewClient("https://example.com/graphql", nil)
var query struct {
User struct {
Name string
}
}
err := client.Query(context.Background(), &query, nil)
fmt.Println(err)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20240915155400-7ee5256398cflatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.