Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 824 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 824 Bytes

CGO Example

Build Status

A simple CGO application that prints "Hello, world!" in Go reading the data from a library in C.

Installation

Assuming a correctly configured Go toolchain:

git clone https://github.com/igor-hnizdo/cgo-example
cd cgo-example
go build

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: