Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tour: Structs information #1587

Open
PythonCoderUnicorn opened this issue Feb 19, 2024 · 0 comments
Open

tour: Structs information #1587

PythonCoderUnicorn opened this issue Feb 19, 2024 · 0 comments

Comments

@PythonCoderUnicorn
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant