dlplugin_multilib_example

command module
v0.0.0-...-45eb8e3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

dlplugin_multilib_example

This example demonstrates a loading multiple dynamic libraries (C++ and Go) with the same interface into the single project.

Additionally, you may want to compare a solution with hashicorp/go-plugin-based and standard plugin-based examples. See gRPC, net/rpc, and plugin links.

Building

cd cppplug && make && cd ..
cd goplug && make && cd ..
make

Running

./multilib -plug1 cppplug/libcppplug.so -plug2 goplug/libgoplug.so
# or
./multilib -plug1 goplug/libgoplug.so -plug2 cppplug/libcppplug.so

Benchmarking

At first, build plugins.

go test -benchmem -bench=.

License

LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
plug command
shared
Package shared contains shared data between the host and plugins.
Package shared contains shared data between the host and plugins.
plug command
plug command

Jump to

Keyboard shortcuts

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