A struct is a collection of fields.
Struct fields can be accessed using a dot: max.Name
.
Access through pointers
Overwriting values:
Struct literals
Next chapter: Maps
A struct is a collection of fields.
Struct fields can be accessed using a dot: max.Name
.
Overwriting values:
Next chapter: Maps