3. Go Primer

“I like a lot of the design decisions they made in the [Go] language. Basically, I like all of them.”

Martin Odersky, creator of Scala

This chapter provides a primer on a select subset of Go language topics. We will be covering the aspects of Go that we will use most frequently throughout this book, including:

Image A “hello world” sample.

Image Introduction to functions.

Image Manipulating and storing data with structs.

Using methods on structs.

Get Cloud Native Go: Building Web Applications and Microservices for the Cloud with Go and React now with O’Reilly online learning.

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