Data types specify the type of data that a valid Go variable can hold. In Go language, the type is divided into four categories which are as follows:
Basic type: Numbers, strings, and booleans come under this category.
Aggregate type: Array and structs come under this category.
Reference type: Pointers, slices, maps, functions, and channels come under this category.
Interface type
Types in Go : https://www.geeksforgeeks.org/data-types-in-go/