define

  • A structure is a collection of properties that conform to data types, each of which has a name, type, and value. A structure groups properties together

Custom type

Type TypeName Formatter // custom int type Counter int // Custom map[string] String type User Map [string]string // Custom function type Callback func()Copy the code