play-with-go-c-shared

command module
v0.0.0-...-2c78a90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 8 Imported by: 0

README

play-with-go-c-shared

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

References

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL