Go Native An example project explaining how to use c/c++ shared library in Golang. Generate C object, gcc -c -Wall -Werror -fpic hello.c Generate shared library, gcc -shared -o libhello.so hello.o Build go, go build -v -o main Run ./main