A quick introduction to Go types
According to https://go.dev/ref/spec#Types, in Go, a type specifies a set of values, along with operations and methods specific to those values.
This is something fundamental about Go: you can define your own types based on existing ones, and those types can have methods attached to them.
You've probably seen this with structs:
// A struct type — groups fields together






