gogoinstall

Why Go Programs need runtime support


It's said that Golang is the compiled language, but what does it mean by compiled? If golang application is compiled to machine code, why can't I just distribute the binary (of course on corresponding arch and platform) instead of go install stuff?


Solution

  • Once you compile a binary you can distribute it onto machines with the same architecture. go install, go run, etc. is just necessary for compilation.