type Profile struct { Name string } func rename(profiles map[int]Profile, id int) { profiles[id].Name = "Lin" }