Call C/C++ lib with the help of swig
mv interface.swig/interface.swigxx interface.i
- For C:
swig -go -cgo -intgosize 64 interface.i
- For C++:
swig -go -cgo -c++ -intgosize 64 interface.i
go get github.com/Akagi201/swiggo
- Auto gen Go package files for godoc and IDE to browser Go definitions.