Why Go Programs need runtime support

8.1k Views Asked by At

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?

1

There are 1 best solutions below

6
On BEST ANSWER

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.