Setting Up Your Go Environment
Summary
This article is to document steps to learning Go from the book Learning Go by Jon Bodner.
The book’s website is located at here.
Installing the Go Tools
Go to the Go website at https://go.dev/dl and choose the download for your platform and install it.
For Mac developers, you can install Go using Homebrew with the command brew install go
You can validate that your environment is set up correctly by running the command go version
.
Resources
- Go developers should read through the book Effective Go at here
- Go developers should read through the Code Review Comments page on Go’s Wiki at here
- Go development tools here are available for most popular text editors and IDEs.
- Go Delve debugger at here
- Go language server gopls
- Go Playground at here
- Go command documentation at here
Random notes
- Go programs use tabs to indent
- Go programs consider it a syntax error if the opening brace is not on the same line as the declaration or command that begins the block