We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http://go-book.appspot.com/maps.html#how-to-declare-a-map
In the example, in line 9, numbers[3] should be numbers["trois"]
numbers[3]
numbers["trois"]
It isn't necessary to declare and then create a make a map
var numbers map[string] int //declare a map of strings to ints numbers = make(map[string]int)
Instead:
var numbers = make(map[string]int)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
http://go-book.appspot.com/maps.html#how-to-declare-a-map
In the example, in line 9,
numbers[3]
should benumbers["trois"]
It isn't necessary to declare and then create a make a map
var numbers map[string] int //declare a map of strings to ints
numbers = make(map[string]int)
Instead:
The text was updated successfully, but these errors were encountered: