llgo/x/cjson:link cjson by pkg-config

This commit is contained in:
luoliwoshang
2024-06-14 10:40:46 +08:00
parent f3b6d25aaa
commit a26d30be3c
2 changed files with 6 additions and 2 deletions

View File

@@ -7,7 +7,11 @@ LLGo wrapper of DaveGamble/cJSON
[![Language](https://img.shields.io/badge/language-Go+-blue.svg)](https://github.com/goplus/gop) [![Language](https://img.shields.io/badge/language-Go+-blue.svg)](https://github.com/goplus/gop)
## How to install ## How to install
### on macOS (Homebrew)
```sh
brew install cjson
```
### from source code
```sh ```sh
git clone https://github.com/goplus/cjson.git git clone https://github.com/goplus/cjson.git
cd cjson cd cjson

View File

@@ -23,7 +23,7 @@ import (
) )
const ( const (
LLGoPackage = "link: cjson" LLGoPackage = "link: $(pkg-config --libs libcjson)"
) )
// llgo:type C // llgo:type C