Write a separate package to handle the C stuff and call it from the other two.

I built a wrapper for a  c++ library:  
https://github.com/goblimey/rplidar_sdk_go.  The c++ code used various features 
that defeated cgo, so I ended up with a multi-layered solution.

One thing I discovered is that cgo has a nasty habit of rewriting the Go code 
that calls C code, including trampling on your comments, so keeping that code 
in  a separate layer is a good idea.

-- 
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.

Reply via email to