如何使用Go编写模块化(插件)应用程序?

I understand that the Go programming language doesn't really support dynamic linking. This makes me wonder, what would somebody do if they wanted to write an application that supported third party (or otherwise contributed) plug-ins?

It seems the typical response is that Go compiles quickly, so just recompile, but I don't find this all that practical for system administrators. The Apache web server for example, has an amazing number of modules that can be configured to be loaded (or not loaded) very easily.

Is the only option left to use sockets or other IPC for plugins?

What I would do, is, set up an API through, say, channel over pipe. And tell the plugin author to issue an exe that communicate over this pipe.

This is similar to how Chrome works today.

This is a way to achieve that over netchan.

Note: the netchan pacakage is deprecated, but the idea is to use RPC over unix pipes.