Sha256: a458743f8198ce65dc4588a6839e9168ae3f3eb6b65972ea17b395230e29a5ae

Contents?: true

Size: 404 Bytes

Versions: 16

Compression:

Stored size: 404 Bytes

Contents

# 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)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby_snowflake_client-1.3.7 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.3.6 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.3.5 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.3.4 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.3.4.pre.debug ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.3.3.pre.debug ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.3.2 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.3.1 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.3.0 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.2.1 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.2.0 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.1.1 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.1.0 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.0.2 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.0.1 ext/vendor/github.com/mattn/go-pointer/README.md
ruby_snowflake_client-1.0.0 ext/vendor/github.com/mattn/go-pointer/README.md