Golang programs can utilize C functions through cgo. Nevertheless, cgo cannot access C++ code base. To utilize C++ code base in Golang, we have to wrap C++ code with C.
Here is a small sample to show such usage.
Copyright (c) 2019-2020, Michelle Chen. Licensed under Apache 2.0.