32 lines
1.0 KiB
Markdown
32 lines
1.0 KiB
Markdown
|
|
LLGo wrapper of DaveGamble/cJSON
|
||
|
|
=====
|
||
|
|
[](https://github.com/goplus/cjson/actions/workflows/go.yml)
|
||
|
|
[](https://github.com/goplus/cjson/releases)
|
||
|
|
[](https://pkg.go.dev/github.com/goplus/cjson)
|
||
|
|
[](https://github.com/goplus/llgo)
|
||
|
|
[](https://github.com/goplus/gop)
|
||
|
|
|
||
|
|
## How to install
|
||
|
|
|
||
|
|
```sh
|
||
|
|
mkdir build.dir
|
||
|
|
cd build.dir
|
||
|
|
cmake ../cJSON
|
||
|
|
make install
|
||
|
|
```
|
||
|
|
|
||
|
|
## Demos
|
||
|
|
|
||
|
|
The `_demo` directory contains our demos (it start with `_` to prevent the `go` command from compiling it):
|
||
|
|
|
||
|
|
* [mkjson](_demo/mkjson/mkjson.go): create a json object and print it
|
||
|
|
|
||
|
|
### How to run demos
|
||
|
|
|
||
|
|
To run the demos in directory `_demo`:
|
||
|
|
|
||
|
|
```sh
|
||
|
|
cd <demo-directory> # eg. cd _demo/mkjson
|
||
|
|
llgo run .
|
||
|
|
```
|