Skip to content

Devoter/dlplugin_multilib_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An example of a multi-library loader for the dlplugin package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published