CHAPTER 3

image

User-Defined Types and Concurrency

The type system is one of the most important features of a programming language; types allow you to organize and store your application data. When choosing a programming language, it is important to take its type system into consideration. Go enforces simplicity throughout the language design.

Go is a static type language in which you can use built-in types and user-defined types for storing application data. Go provides several built-in types, such as int, float64, string, and bool. Chapter 2 discussed arrays, slices, and maps, which are the composite types made up of other types using built-in types ...

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.