On Wed, Nov 29, 2017 at 1:00 PM, Владислав Митов <vladislav.mi...@gmail.com> wrote: > > I'm writing a Go wrapper around C library and I'm trying to omit all > possible allocations. > > Here is my working example - > https://github.com/milagro-crypto/milagro-crypto-c/commit/1f070f24d83c76c5e7e5c6c548a9715438abc758#diff-a3c034fc3f075297e9e3a7cca9ace62eR65. > There are 3 allocations there 65, 73 and 82. > > Passing `(*C.char)(unsafe.Pointer(&msg[0]))` at 65 panics with `runtime > error: cgo argument has Go pointer to Go pointer`. > > Any suggestions?
You may be running into https://golang.org/issue/14210. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.