Blog

Latest Post

Jan 13, 2018

Developing Go Plugins on non-Linux Operating Systems

In one of my many (incomplete) side-projects I need to dynamically load modules into a Go application. Vladimir Vivien has a great post explaining how to do this using Go plugins but Go’s plugin functionality currently only works on Linux. If we try from another operating system, such as MacOS we’re stopped in our tracks: $ go build --buildmode=plugin -o eng/eng.so eng/greeter.go -buildmode=plugin not supported on darwin/amd64 Go plugins being limited to Linux isn’t a blocker for my side-project which will require Linux anyway but I’d still like to develop the project on my main development machine which runs MacOS. Read more

All Posts

  • Developing Go Plugins on non-Linux Operating Systems - Jan 13, 2018