golang / tour

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

tour: new concept in code example is unnamed #1601

Open Samuelodan opened 3 months ago

Samuelodan commented 3 months ago

Context: https://go.dev/tour/moretypes/9

I noticed that anonymous structs are silently introduced in this lesson. It made me think I missed it from an earlier lesson, but apparently, I didn't. It was, in fact, new.

So, can we add a note in the lesson, at least, mentioning that anonymous structs are used?