Go Base Image with some common features

Perhaps you can use the plugin package

https://golang.org/pkg/plugin/

Though I’m not sure if that is a good design decision, I’d make the “base image” a framework that you can link to/import from/use through your “Microservices”.