A type alias in Go creates a new name for an existing type without defining a new distinct type. Use the type keyword followed by the alias name, an equals sign, and the original type. Unlike a type definition, variables of the alias type are interchangeable with the original type.
type byte = uint8
type any = interface{}
In this example, byte is an alias for uint8, and any is an alias for interface{}. You can use byte and uint8 interchangeably in function signatures and variable declarations.