2. Go's Types of Types
Category
Description
Examples
π§± Basic Types (a.k.a. primitive types)
Type
Description
Example
π§© Composite Types (built from other types)
Composite Type
Description
Example
π§© Interface Types
π§± Type Declarations (custom types)
π§© Type Aliases
π§ The βType Hierarchyβ Mental Model
π§© Bonus: The interface{} βcatch-allβ type
interface{} βcatch-allβ typeπ§ TL;DR β The βTypes of Typesβ in Go
Category
Examples
Purpose
Last updated