tour icon indicating copy to clipboard operation
tour copied to clipboard

tour: Structs information

Open PythonCoderUnicorn opened this issue 1 year ago • 0 comments

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:

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.

PythonCoderUnicorn avatar Feb 19 '24 18:02 PythonCoderUnicorn