Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opensourcedoc/go-c-cpp-mix
Using C++ Class in Golang
https://github.com/opensourcedoc/go-c-cpp-mix
cgo cpp golang-examples
Last synced: about 1 month ago
JSON representation
Using C++ Class in Golang
- Host: GitHub
- URL: https://github.com/opensourcedoc/go-c-cpp-mix
- Owner: opensourcedoc
- License: other
- Created: 2016-04-17T15:39:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-15T18:32:36.000Z (about 3 years ago)
- Last Synced: 2024-10-11T00:33:35.589Z (about 1 month ago)
- Topics: cgo, cpp, golang-examples
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.