Retrieve values using bracket notation:
ages := map[string]int{"Alice": 30, "Bob": 25}
alice := ages["Alice"] // 30
bob := ages["Bob"] // 25
If you request a key that doesn't exist, you get the zero value for the value type:
carol := ages["Carol"] // 0 (zero value for int)
This can be confusing if is a valid value. The next unit shows how to check if a key exists.