mirror of
https://github.com/openappsec/openappsec.git
synced 2025-10-01 20:17:43 +03:00
Feb 15th 2023 update
This commit is contained in:
20
external/graphqlparser/go/README.md
vendored
Normal file
20
external/graphqlparser/go/README.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# About
|
||||
This directory contains an example using the libgraphqlparser C library from [Go](https://golang.org/project/).
|
||||
|
||||
For an overview of binding to C libraries in Go, please see the [cgo documentation](https://github.com/golang/go/wiki/cgo).
|
||||
Specifically, please read the overview of [Function pointer callbacks](https://github.com/golang/go/wiki/cgo#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:
|
||||
```sh
|
||||
$ cd libgraphqlparser/go
|
||||
$ go build
|
||||
$ ./go
|
||||
field : myfield
|
||||
Example error: 1.18-19: syntax error, unexpected on, expecting ( or @ or {
|
||||
```
|
Reference in New Issue
Block a user