Registry / utility / mattn-go-pointer

mattn-go-pointer

JSON →
library0.0.1gogounverified

A Go library for storing and retrieving Go pointers in C memory via cgo.

go get github.com/mattn/go-pointer
INSTALL
IMPORT
SIG · MATTN-GO-POINTER
M
mattn-go-pointer
utilitygov0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pointer
github.com/mattn/go-pointer

Store and retrieve Go pointers in C memory.

package main import ( "fmt" "github.com/mattn/go-pointer" ) func main() { p := pointer.Save("hello") defer pointer.Unref(p) val := pointer.Restore(p).(string) fmt.Println(val) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mattn-go-pointer — go get mattn-go-pointer · libregistry