From 65b72c71e61afc124adc3dbd8f7abeff0c56f2a4 Mon Sep 17 00:00:00 2001 From: Ben Kraft Date: Thu, 16 Jun 2022 14:25:12 -0700 Subject: [PATCH] Add genqlient to list of Go clients genqlient has been public for almost a year now, so it seems like time to add it to this page! I mostly copied the descriptions from its README. --- .../code/language-support/go/client/genqlient.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/content/code/language-support/go/client/genqlient.md diff --git a/src/content/code/language-support/go/client/genqlient.md b/src/content/code/language-support/go/client/genqlient.md new file mode 100644 index 0000000000..1be0f914aa --- /dev/null +++ b/src/content/code/language-support/go/client/genqlient.md @@ -0,0 +1,14 @@ +--- +name: genqlient +description: A truly type-safe Go GraphQL client. +url: https://github.com/Khan/genqlient +github: Khan/genqlient +--- + +genqlient is a Go library to easily generate type-safe code to query a GraphQL API. It takes advantage of the fact that both GraphQL and Go are typed languages to ensure at compile-time that your code is making a valid GraphQL query and using the result correctly, all with a minimum of boilerplate. + +genqlient provides: + +- Compile-time validation of GraphQL queries: never ship an invalid GraphQL query again! +- Type-safe response objects: genqlient generates the right type for each query, so you know the response will unmarshal correctly and never need to use `interface{}`. +- Production-readiness: genqlient is used in production at Khan Academy, where it supports millions of learners and teachers around the world.