golang / tour

[mirror] A Tour of Go
BSD 3-Clause "New" or "Revised" License
1.55k stars 520 forks source link

tour: Structs - type declaration is not explained #121

Open hannahcancode opened 7 years ago

hannahcancode commented 7 years ago

Context: https://tour.golang.org/moretypes/2

"(And a type declaration does what you'd expect.)"

Could this be expanded upon for those of us who don't know what to expect from a type declaration?

athyuttamre commented 7 years ago

+1 to this. A tutorial should explain succinctly, and not assume familiarity.

Go is increasingly used by programmers of all experience levels, and is also being taught in college courses. I would submit a PR but don't feel like I could come up with an authoritative explanation.

Could someone improve this please?