A little over 2.5 years ago, I wrote a tutorial about installing Go. Since
then, one of the more significant changes to the Go ecosystem has been the
addition of modules, which effectively does away with the hardest part of
installing Go--$GOPATH
. This change occurred in the latest version: Go 1.11.
In addition to installing Go, I wanted to make a guide that can get you from
nothing to a real project in half an hour. Most languages focus their
introductory material on the language and briefly cover setting up a toy
program. When you're done, you realize you have no idea how to build a
multi-file program, how to add dependencies (or at least how to add them in a
way that won't break other things on your system), how to get an editor up
and running, etc.
I'm not going to focus much at all on Go the language here, since it's super
easy to learn and there are already many great tutorials (the official
Tour is probably not a bad place to start). I'm only going to go deep
enough to give you a lay of the land; if I've done my job, it should be easy
enough to Google for specific resources on any given topic (for example,
testing).
Now without further ado...
Read More