Essential Go Basic types  Suggest an edit

Structures

A structure groups multiple values into a single entity.

Zero value of struct is a struct whose fields are set to their respective zero values.

Struct basics:

type MyStruct struct {
	IntVal           int
	StringVal        string
	unexportedIntVal int
}

Learn more about structs.

  ↑ ↓ to navigate     ↵ to select     Esc to close