Skip to content

opensourcedoc/go-c-cpp-mix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using C++ Class in Golang

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

Copyright (c) 2019-2020, Michelle Chen. Licensed under Apache 2.0.