play-with-go-c-shared

command module
v0.0.0-...-439b3c3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 7 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 / npm 6v.14.12 / node-gyp v5.1.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