运行已编译的Go应用程序是否需要Go语言运行时?

huangapple go评论84阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2015年11月27日 03:22:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/33945738.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定