Types
A type determines a set of values along with specific operations and methods for those values.
A type can be denoted by the name of a type, if it has one, or specified using literal type, which composes a type from existing types.
The language pre-declares certain type names. Others are introduced with type declarations. Compound types such as:
array |
struct |
pointer |
func |
interface |
slice |
map |
chan |
can be constructed using type literals.
A complete list with all pre-declared types can be found
here.