Skip to content
Go-gettable version of the libgraphqlparser C library for parsing GraphQL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
internal
Ast.cpp
GraphQLParser.cpp
JsonVisitor.cpp
README.md
c_GraphQLAst.cpp
c_GraphQLAstNode.cpp
c_GraphQLAstToJSON.cpp
c_GraphQLAstVisitor.cpp
c_GraphQLParser.cpp
cgo_flags.go
gitignore.patch
import.sh
includes.patch
lexer.cpp
parser.tab.cpp

README.md

c-graphqlparser

This is a go-gettable version of the libgraphqlparser C library for use in Go code that needs to link against the libgraphqlparser C library but wants to integrate with go get and go build.

To use in your project you need to import the package and set appropriate cgo flag directives:

import _ "github.com/tecbot/c-graphqlparser"

// #cgo CXXFLAGS: -std=c++11
// #cgo CPPFLAGS: -I <relative-path>/c-graphqlparser/internal
// #cgo darwin LDFLAGS: -Wl,-undefined -Wl,dynamic_lookup
// #cgo !darwin LDFLAGS: -Wl,-unresolved-symbols=ignore-all
import "C"

To update the upstream version of libgraphqlparser you'll want to run ./import.sh.

You can’t perform that action at this time.