mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
760 B
760 B
About
This directory contains an example using the libgraphqlparser C library from Go.
For an overview of binding to C libraries in Go, please see the cgo documentation. Specifically, please read the overview of Function pointer callbacks in Go and C.
Building and Running
To build with Go, please ensure that you have pkg-config
installed for your
system.
Assuming pkg-config has been installed, it should be possible to then build using Go in the normal fashion:
$ cd libgraphqlparser/go
$ go build
$ ./go
field : myfield
Example error: 1.18-19: syntax error, unexpected on, expecting ( or @ or {