This is a POC of using a C-shared library (created from Go) in another Go program. It's composed of 3 files:
lib.go
The librarymain.go
The main Go program leveraging the C-shared libraryMakefile
For easy running and building. Callmake run
to run and build.
If you'd like to try this in Docker:
docker run --rm -w /work -v $PWD:/work golang make run