https://github.com/cpliakas/cgo-example
A simple CGO application for example purposes.
https://github.com/cpliakas/cgo-example
cgo example
Last synced: 6 months ago
JSON representation
A simple CGO application for example purposes.
- Host: GitHub
- URL: https://github.com/cpliakas/cgo-example
- Owner: cpliakas
- License: mit
- Created: 2017-09-17T00:01:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-17T01:14:31.000Z (about 8 years ago)
- Last Synced: 2025-03-27T17:58:55.323Z (7 months ago)
- Topics: cgo, example
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 0
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CGO Example
[](https://travis-ci.org/cpliakas/cgo-example)
A simple CGO application that prints "Hello, world!" in Go reading the data
from a library in C.## Installation
Assuming a [correctly configured](https://golang.org/doc/install) Go
toolchain:```shell
go get github.com/cpliakas/cgo-example
```## Usage
Run `cgo-example` on the command line, and it should return `Hello, world!`.
## How Does It Work?
**TODO**
## Should You Be Doing This?
Maybe, but probably not. Relevant articles on this topic are listed below:
* [The Cost and Complexity of Cgo](https://www.cockroachlabs.com/blog/the-cost-and-complexity-of-cgo/)
* [cgo is not Go](https://dave.cheney.net/2016/01/18/cgo-is-not-go)