https://github.com/akagi201/swiggo
Call C/C++ lib with the help of swig
https://github.com/akagi201/swiggo
cgo golang swig
Last synced: 5 months ago
JSON representation
Call C/C++ lib with the help of swig
- Host: GitHub
- URL: https://github.com/akagi201/swiggo
- Owner: Akagi201
- License: mit
- Created: 2017-01-18T06:57:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-18T13:15:17.000Z (over 8 years ago)
- Last Synced: 2025-04-04T18:51:57.585Z (6 months ago)
- Topics: cgo, golang, swig
- Language: Go
- Homepage: https://godoc.org/github.com/Akagi201/swiggo
- Size: 31.3 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swiggo
[](https://travis-ci.org/Akagi201/swiggo)
[](https://goreportcard.com/report/github.com/Akagi201/swiggo)
[](https://godoc.org/github.com/Akagi201/swiggo)Call C/C++ lib with the help of swig
## Generate Go package file and C/C++ wrapper file
* `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`## Usage
* `go get github.com/Akagi201/swiggo`## TODO
- [ ] Auto gen Go package files for godoc and IDE to browser Go definitions.