英文:
Do I need the Go language runtime to run a compiled Go application?
问题
在使用Go编程语言时,如果我在Windows上构建一个可执行文件,我需要在另一台机器上安装Go运行时才能运行该应用程序吗?
英文:
With the Go programming language when I build an executable on Windows do I need the Go runtime installed to run the application on another machine?
答案1
得分: 20
只要运行程序的机器上安装了程序所需的任何依赖项,或者程序是静态编译的,用户就可以在不安装任何东西的情况下运行程序。更好的答案可能在这里。
英文:
As long as any dependencies your program has are installed on the machine running the program, or your program is statically compiled, the user will be able to run your program without installing anything. A better answer might be here.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论