Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tecbot/c-graphqlparser
Go-gettable version of the libgraphqlparser C library for parsing GraphQL
https://github.com/tecbot/c-graphqlparser
Last synced: 3 months ago
JSON representation
Go-gettable version of the libgraphqlparser C library for parsing GraphQL
- Host: GitHub
- URL: https://github.com/tecbot/c-graphqlparser
- Owner: tecbot
- Created: 2015-09-19T08:13:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-17T13:56:54.000Z (over 9 years ago)
- Last Synced: 2024-08-01T22:51:20.949Z (6 months ago)
- Language: C++
- Size: 185 KB
- Stars: 29
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-graphql - c-graphqlparser - Go-gettable version of the libgraphqlparser C library for parsing GraphQL. (Libraries / Go Libraries)
- awesome-graphql - c-graphqlparser - Go-gettable version of the libgraphqlparser C library for parsing GraphQL. (Libraries / Go Libraries)
README
# c-graphqlparser
This is a go-gettable version of the [libgraphqlparser](https://github.com/graphql/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 /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`.