Noob Question about Go Modules - Do we need them on all the servers we run the executable on?

Hi,
I am someone new to Go.
When I write a Perl or Python script and it has some modules, I need to ensure that the same Perl/Python version and the modules are installed on all the servers on which I am running the scripts.
Does this hold true for Go? I guess not, but just wanted to confirm.

2 Likes

Compiled executables are selfcontained. So after compilation all you need to deploy is the executable.

5 Likes

Hi NobbZ,
Thanks for replying. One of the reasons why I am interested in learning Go is this single binary executable. But, just wanted to confirm it. Sorry for asking such a noob question.

2 Likes

Never apologize for asking questions like this. This is how we learn.

4 Likes

Hi Feliciano,
Thank you for the encouragement.

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.