Skip to content

Minimal example of using go 1.8 plugins with init registration.

License

Notifications You must be signed in to change notification settings

stevvooe/plugtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plugtest

Minimal example of using go 1.8 plugins with init registration.

Usage

First, build the plugin:

$ go build -buildmode=plugin -o plugin1.so ./plugin1

Then, build plugger:

$ go build ./cmd/plugger

These don't need to be done in a particular order. Now, we can run plugger:

$ ./plugger plugin1

Let's build the other plugin:

$ go build -buildmode=plugin -o plugin2.so ./plugin2

Now, we can run that one as well:

$ ./plugger plugin2

About

Minimal example of using go 1.8 plugins with init registration.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages