cjson/sqlite README: remove install from source
This commit is contained in:
5
c/c.go
5
c/c.go
@@ -196,11 +196,6 @@ func Fflush(fp FilePtr) Int
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
//go:linkname Remove C.remove
|
||||
func Remove(path *Char) Int
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
//go:linkname Time C.time
|
||||
func Time(*int32) int32
|
||||
|
||||
|
||||
@@ -1,31 +1,19 @@
|
||||
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
|
||||
|
||||
### on macOS (Homebrew)
|
||||
|
||||
```sh
|
||||
brew install cjson
|
||||
```
|
||||
### on linux
|
||||
|
||||
### on Linux (Debian/Ubuntu)
|
||||
|
||||
```sh
|
||||
apt-get install -y libcjson-dev
|
||||
```
|
||||
### from source code
|
||||
```sh
|
||||
git clone https://github.com/goplus/cjson.git
|
||||
cd cjson
|
||||
git submodule init
|
||||
git submodule update
|
||||
mkdir build.dir
|
||||
cd build.dir
|
||||
cmake ../cJSON
|
||||
sudo make install
|
||||
```
|
||||
|
||||
## Demos
|
||||
|
||||
|
||||
@@ -1,32 +1,19 @@
|
||||
LLGo wrapper of sqlite
|
||||
=====
|
||||
[](https://github.com/goplus/sqlite/actions/workflows/go.yml)
|
||||
[](https://github.com/goplus/sqlite/releases)
|
||||
[](https://pkg.go.dev/github.com/goplus/sqlite)
|
||||
[](https://github.com/goplus/llgo)
|
||||
[](https://github.com/goplus/gop)
|
||||
|
||||
## How to install
|
||||
|
||||
### on macOS (Homebrew)
|
||||
|
||||
```sh
|
||||
brew install sqlite3
|
||||
```
|
||||
### on linux
|
||||
|
||||
### on Linux (Debian/Ubuntu)
|
||||
|
||||
```sh
|
||||
apt-get install -y libsqlite3-dev
|
||||
```
|
||||
### from source code
|
||||
```sh
|
||||
git clone https://github.com/goplus/sqlite.git
|
||||
cd sqlite
|
||||
git submodule init
|
||||
git submodule update
|
||||
mkdir build.dir
|
||||
cd build.dir
|
||||
../sqlite/configure --enable-shared
|
||||
sudo make install
|
||||
```
|
||||
|
||||
## Demos
|
||||
|
||||
|
||||
@@ -2,11 +2,12 @@ package main
|
||||
|
||||
import (
|
||||
"github.com/goplus/llgo/c"
|
||||
"github.com/goplus/llgo/c/os"
|
||||
"github.com/goplus/llgo/c/sqlite"
|
||||
)
|
||||
|
||||
func main() {
|
||||
c.Remove(c.Str("test.db"))
|
||||
os.Remove(c.Str("test.db"))
|
||||
|
||||
db, err := sqlite.Open(c.Str("test.db"))
|
||||
check(err, db, "sqlite: Open")
|
||||
|
||||
Reference in New Issue
Block a user