Structs
suggest changeA 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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents