package
module
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Jul 22, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 192
Opens a new window with list of known importers.
README
¶
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)
Documentation
¶
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.