Go 的插件系统允许使用 plugin 包在运行时加载共享库(.so 文件),通过 go build -buildmode=plugin 构建。支持模块化架构,但存在限制:仅限 Unix 系统、版本兼容性问题以及复杂性。
plugin
go build -buildmode=plugin