Lazy and deliberately minimal example of fwlib called from go. Surprisingly painless.
- clone submodules (fwlib)
git submodule update --init --recursive
- install appropriate fwlib (arm/x86/x64) to
/usr/local/lib
or symlink inextern/fwlib
withcd extern/fwlib && ln -s libfwlib32-linux-$ARCH.so.1.0.5 libfwlib32.so
- build
go build .
or rungo run .