Go 插件化开发

编写插件

插件入口package必须为main,可以不包含main方法

go build -buildmode=plugin -o hello_plugin.so .

生成 hello_plugin.so 插件