英文:
How do I build plugin Go in windows?
问题
我在Go语言中编写了一个简单的插件,当我执行"go build -buildmode=plugin"命令时,出现以下错误:
在windows/amd64上不支持-buildmode=plugin
Go版本为:go1.18.1
Windows 10
英文:
I wrote a simple plugin in Go, it gives the following error when I execute the go build -buildmode=plugin
command:
-buildmode=plugin not supported on windows/amd64
Version go is :go1.18.1
windows 10
答案1
得分: 3
错误消息告诉你插件在Windows上不受支持。唯一支持的平台是Linux、FreeBSD和macOS。请参考https://pkg.go.dev/plugin:
> 目前插件仅在Linux、FreeBSD和macOS上受支持。
英文:
As error message tells you plugins are not supported on Windows. Only supported platforms are Linux, FreeBSD and macOS. See https://pkg.go.dev/plugin :
> Currently plugins are only supported on Linux, FreeBSD, and macOS.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论