Add or update entries using bracket notation:
ages := make(map[string]int)
ages["Alice"] = 30 // add new entry
ages["Bob"] = 25 // add another
ages["Alice"] = 31 // update existing
If the key exists, the value is replaced. If it doesn't exist, a new entry is created. The syntax is the same either way. Maps grow automatically as you add entries.