Skip to content

cookieo9/goffi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ffi

Go FFI (and dlopen) packages to wrap C libraries.

This code is not being actively developped and is mostly provided as a reference. For another FFI implementation that is active developpment see: https://bitbucket.org/binet/go-ffi

Automatically generated documentation can be found at:

Installation and Basic Usage

Install:

go get github.com/cookieo9/goffi/fcall

Example (tested on Mac OS X):

import "github.com/cookieo9/goffi/fcall"
...
puts, _ := fcall.GetFunction("puts", SINT32, POINTER)
cstr := fcall.CString("Hello, World!")
defer fcall.Free(cstr)
puts(cstr)

License

http://cookieo9.mit-license.org/2012

About

Go FFI (and dlopen) Libraries to wrap C libraries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages