This repository provides an example plugin for Juno.
Remove the replace command in go.mod when plugin is supported on Junos main branch
Go plugings require that both the application (Juno in this case) and the plugin (myplugin.go) are built with the exact same version of Go, and, the same dependecies.
- Write your code in myplugin.go
- Run 'make build'. This should generate an '.so' file, which you will need to pass into Juno.
- Download Juno (in a seperate directory), and run it (eg 'make juno').
- Pass the '.so' file generated in step 2 above, into Juno. For example, './build/juno --plugin-path ./path/to/myplugin.so'