github.com/goplus/llgo@v0.8.3/c/cjson/README.md (about)

     1  LLGo wrapper of DaveGamble/cJSON
     2  =====
     3  [![Build Status](https://github.com/goplus/cjson/actions/workflows/go.yml/badge.svg)](https://github.com/goplus/cjson/actions/workflows/go.yml)
     4  [![GitHub release](https://img.shields.io/github/v/tag/goplus/cjson.svg?label=release)](https://github.com/goplus/cjson/releases)
     5  [![GoDoc](https://pkg.go.dev/badge/github.com/goplus/cjson.svg)](https://pkg.go.dev/github.com/goplus/cjson)
     6  [![Compiler](https://img.shields.io/badge/compiler-llgo-darkgreen.svg)](https://github.com/goplus/llgo)
     7  [![Language](https://img.shields.io/badge/language-Go+-blue.svg)](https://github.com/goplus/gop)
     8  
     9  ## How to install
    10  
    11  ```sh
    12  git clone https://github.com/goplus/cjson.git
    13  cd cjson
    14  git submodule init
    15  git submodule update
    16  mkdir build.dir
    17  cd build.dir
    18  cmake ../cJSON
    19  sudo make install
    20  ```
    21  
    22  ## Demos
    23  
    24  The `_demo` directory contains our demos (it start with `_` to prevent the `go` command from compiling it):
    25  
    26  * [mkjson](_demo/mkjson/mkjson.go): create a json object and print it
    27  
    28  ### How to run demos
    29  
    30  To run the demos in directory `_demo`:
    31  
    32  ```sh
    33  cd <demo-directory>  # eg. cd _demo/mkjson
    34  llgo run .
    35  ```