CHAPTER 2

image

Go Fundamentals

Chapter 1 furnished an overview of the Go programming language and discussed how it is different from other programming languages. In this chapter, you will learn Go fundamentals for writing reusable code using packages and how to work with arrays and collections. You will also learn Go language fundamentals such as defer, panic, and recover, and about Go’s unique error-handling capabilities.

Packages

For a Go developer, the design philosophy for developing applications is to develop reusable pieces of smaller software components and build applications by composing these components. Go provides modularity, composability, ...

Get Web Development with Go: Building Scalable Web Apps and RESTful Services 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.