After attending the dotGo 2016 talk from Brad Rydzewski I wanted to get a working example of plugins in golang via net/rpc
with docker for additional isolation.
A bit of googling let me to find this go playground detailing how to setup net/rpc
via os.Stdin
and os.Stdout
. I connected the dots
so that I can execute a docker image instead.
$ GOOS=linux GOARCH=amd64 go build -o my-plugin plugin.go
$ docker build -t rpc-sqrt .
$ go run main.go