Is there a way to call C++ code from Go ? I need to call C++ code in Windows and Mac. Does Go language support cross language integration?
Go is a compiled language, not a scripting language. However, it does not support direct calling of functions written in C/C++. The cgo program may be used to generate wrappers to call C code from Go, but there is no convenient way to call C++ code. SWIG fills this gap.
Use SWIG.