Find why rename does not compile.
Go
type Profile struct {
Name string
}
func rename(profiles map[int]Profile, id int) {
profiles[id].Name = "Lin"
}
type Profile struct {
Name string
}
func rename(profiles map[int]Profile, id int) {
profiles[id].Name = "Lin"
}