Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lcaballero/gocombine
Small cli tool to combine cpp and .go files (for use via go:generate or makefile, etc)
https://github.com/lcaballero/gocombine
Last synced: 23 days ago
JSON representation
Small cli tool to combine cpp and .go files (for use via go:generate or makefile, etc)
- Host: GitHub
- URL: https://github.com/lcaballero/gocombine
- Owner: lcaballero
- License: epl-1.0
- Created: 2015-12-18T07:29:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-18T07:31:08.000Z (about 9 years ago)
- Last Synced: 2024-06-20T10:37:36.777Z (7 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Introduction
A Go (Golang) generator. Combines .c and .go file to produce a new
.go file for `cgo`. This should allow a developer to use their editor
of choice to edit independently the .c and .go files instead of a
single large comment above a .go import "C" line.## Usage
At the command line for use with a makefile perhaps:
```
gocombine --cc some-c.cpp --go some-go.go --out generated.gen.go
```Embedded in Go code:
```
//go:generate gocombine --cc some-c.cpp --go some-go.go --out
generated.gen.go
```## License
See license file.
The use and distribution terms for this software are covered by the
[Eclipse Public License 1.0][EPL-1], which can be found in the file 'license' at the
root of this distribution. By using this software in any fashion, you are
agreeing to be bound by the terms of this license. You must not remove this
notice, or any other, from this software.[EPL-1]: http://opensource.org/licenses/eclipse-1.0.txt