This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Description
I'm getting a 'duplicate argument name' with the below code
func location(name, city string) (name, continent string) {
switch city {
case "New York", "LA", "Chicago":
continent = "North America"
default:
continent = "Unknown"
}
return
}
func main() {
name, continent := location("Matt", "LA")
fmt.Printf("%s lives in %s", name, continent)
}
go version go1.4.2 darwin/amd64