Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 664 Bytes

README.md

File metadata and controls

45 lines (32 loc) · 664 Bytes

Cgo Demos

make all

A .so for adding two numbers together

make -C src/addlib

A go library that calls Addlib

make addbin
LD_LIBRARY_PATH=src/addlib addbin

A small example Go application using libimagemagick

May require libmagickwand-6-headers to compile and libmagickwand-6.q16

make imagemagick
./imagemagick

An example of calling C from Go

make c_from_go
./c_from_go

An example of calling go from C

make -C src/gofromc
./gofromc