First implementation

This commit is contained in:
2021-10-10 21:03:57 +02:00
parent f8be309c81
commit 0dfd7a595b
344 changed files with 63911 additions and 0 deletions

29
vendor/github.com/mattn/go-pointer/README.md generated vendored Normal file
View File

@@ -0,0 +1,29 @@
# go-pointer
Utility for cgo
## Usage
https://github.com/golang/proposal/blob/master/design/12416-cgo-pointers.md
In go 1.6, cgo argument can't be passed Go pointer.
```
var s string
C.pass_pointer(pointer.Save(&s))
v := *(pointer.Restore(C.get_from_pointer()).(*string))
```
## Installation
```
go get github.com/mattn/go-pointer
```
## License
MIT
## Author
Yasuhiro Matsumoto (a.k.a mattn)