Essential Go Basic types  Edit on GitHub      File Issue


A structure groups multiple values into a single entity.

Struct basics:

type MyStruct struct {
	IntVal           int
	StringVal        string
	unexportedIntVal int

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

Learn more about structs.

  ↑ ↓ to navigate     ↵ to select     Esc to close