CollectionsMaps, Structs & JSON Tags Preview
All courses

Keyed data and typed records

map[K]V is a hash map. Accessing a missing key returns the zero value — use the two-value form v, ok := m[key] to detect presence.

struct groups fields. Exported fields start with uppercase — Go's visibility rule is simple: capital letter = public.

Output
Press Run to execute your code.