Wrapping C++ with Go This is a minimal example of how to wrap a C++ class manually with Go. I borrowed most of the code from a stack overflow answer, but modified it to use static linking.