Introduction
Let’s get an overview of composite data types.
We'll cover the following
Overview of composite data types
Go offers support for maps and structures, which are composite data types and the main subject of this chapter. The reason that we present them separately from arrays and slices is that both maps and structures are more flexible and powerful than arrays and slices. The general idea is that if an array or a slice can’t do the job, we might need to look at maps. If a map can’t help us, then we should consider creating and using a structure.
Get hands-on with 1400+ tech skills courses.