All Projects → mattn → Go Pointer

mattn / Go Pointer

Licence: mit

Programming Languages

go
31211 projects - #10 most used programming language

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)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].