How to Build a Pluggable Library in Go
While exploring Envoy Proxy, I got intrigued by how users can write custom code as plugins and load those implementations at runtime. This curiosity led me down a rabbit hole of research, where I stumbled upon the buildmode=plugin option in Go’s official documentation. The documentation was pretty straightforward, so I decided to try it out, and now I want to share what I’ve learned. What is go buildmode=plugin? The go buildmode=plugin option allows you to compile Go code into a shared object file....