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 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 go version in your command line and see your Go version ...

Get Level Up Your Web Apps With Go now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.