Calling Golang's "buildmode=c-shared" generated shared-library via FFI from various languages.
Prerequisites
Docker for Mac(Or other Docker client app)
Tested with following language versions.
Node.js: v10.24.1
Ruby: v3.0.2
PHP: v7.4
Python: v3.8.12
Golang: v1.17.2
How to run
# Build Docker containers
docker-compose build
# Build shared library ".h/.so" files.
make lib
# Run examples.
## JavaScript
make js
## PHP
make php
## Python
make python
## Ruby
make ruby
## Go(Client)
make go