can you show us a complete example with a stub C function? in
particular the conversion to (*C.char) from unsafe.Pointer(&data[0])
should work. compare the first four bits at that address with the
first four bits you're receiving on the C side. they should be
identical. e.g.:
https://play.golang.org/p/sqP12_nJNF
> --
> 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...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.