Chapter 1Welcome New Gopher
This chapter is designed to give you a grounding in the fundamentals of the Go language. We’ll start out by covering installation on various operating systems and write our first piece of Go code, before moving on to look at Go’s tools, syntax, and types. Let's get started!
The first step in writing Go code is to get your hands on the Go tool set, available at https://golang.org/doc/install. The Go authors provide installation packages for Windows, Mac OS, and Linux. You can also install Go from the source code, and if you’re on a system other than those with pre-built installers, you’ll need to do it this way.
Once installed, you should be able to type
version in your command line and see your Go version ...