https://github.com/d-led/go-plugin-tryout
trying out plugin mechanisms
https://github.com/d-led/go-plugin-tryout
Last synced: about 1 year ago
JSON representation
trying out plugin mechanisms
- Host: GitHub
- URL: https://github.com/d-led/go-plugin-tryout
- Owner: d-led
- License: unlicense
- Created: 2020-11-04T17:13:24.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-19T13:37:38.000Z (over 1 year ago)
- Last Synced: 2025-02-15T23:44:22.745Z (over 1 year ago)
- Language: Go
- Size: 72.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-plugin-tryout
trying out plugin mechanisms:
- https://github.com/hashicorp/go-plugin
- https://golang.org/pkg/plugin
on windows, run:
```shell
demo.bat
```
on *X:
```shell
./demo.sh
```
## Structure
- [interfaces/randomizer.go](interfaces/randomizer.go) - pure Go interface of the plugin functionality
- [randomizer](randomizer) - plugin-independent interface implementation
- [interfaces/randomizer_rpc.go](interfaces/randomizer_rpc.go) - go-plugin RPC wrapper
- [randomizer_rpc](randomizer_rpc) - go-plugin plugin main
- [randomizer_native](randomizer_native) - `golang.org/pkg/plugin` plugin entry point
- [main.go](main.go) - demo