INNER CODE UNIT · Go

init

runmedev/runme · tools/gqltool/main.go:16

func init() {
	flag.Parse()
}

func main() {
	httpClient := client.NewHTTPClient(nil)
	client, err := graphql.New(*apiURL+"/graphql", httpClient)
	if err != nil {
		log.Fatal(err)
	}
	result, err := client.IntrospectionQuery(context.Background())
	if err != nil {
		log.Fatal(err)
	}
	_, _ = fmt.Fprintf(os.Stdout, "%s", result)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…