Go is a statically-typed language, which means that every variable has a specific data type that determines the kind of value it can hold. Go has several built-in data types that are categorized into four main groups: basic types, aggregate types, reference types, and interface types.
Basic types are the primitive data types in Go. They include:
- bool: Represents a boolean value, either
true
orfalse
.