Skip to content

daviCalavera/go-c-library-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-c-library-example

Example of using C libraries in Go. Test the use the ncurses C libraries to access keyboard functions.

Credits

Based on this great post by William Kennedy.

Build Steps

Build C keyboard library:

There are two build options in Makefile, dynamic for Mac OS X and shared for linux. This can be set editing the all make rule.

cd Lib/
make
cd ..

Build and install the GO package:

In project folder:

go build
go install

Run test command:

In project folder:

$GOPATH/bin/gockeyboard

About

Example of using C libraries in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published