Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 798 Bytes

README.md

File metadata and controls

37 lines (22 loc) · 798 Bytes

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