.exe vs running the main.go for webserver

The exe file can be used without having the source and a Go compiler installed. Using “go run” becomes cumbersome or impossible as your program grows (in number of files and packages). Apart from that, once it runs, it’s the same code no matter how you ran it.

5 Likes