We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I'm getting a 'duplicate argument name' with the below code