The page simply has "a Struct is a collection of fields".
Based on the information of a Go struct i have learned from other sources is:
type [Name] struct {
[var name] type
[var name] type
}
One example that can help fellow newbies to the language is to have an example of a book or a beverage, as these structs are simple and allow themselves to be reused for further code examples.
It would be helpful to have more information on the page.
Context: https://go.dev/tour/moretypes/2
The page simply has "a Struct is a collection of fields".
Based on the information of a Go struct i have learned from other sources is:
One example that can help fellow newbies to the language is to have an example of a book or a beverage, as these structs are simple and allow themselves to be reused for further code examples.
It would be helpful to have more information on the page.