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!

Installation

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

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.