I am from the NodeJS/JavaScript world where I have npm
and dependencies written down in the package.json
. When I deploy it, I know that I just need to run npm install
and all the dependencies consumed by the app will be installed.
How is it supposed to be done for a Go project? Suppose I have a source code of the app which I deploy remotely by, say, running git pull
. Now, how do I make sure the dependencies are present? What I see is I need to install a package manager manually then install dependencies using it?
What's a standard way of deploying a Go app on a server?