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 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.