Create a gist now

Instantly share code, notes, and snippets.

intMap := make(map[string]int)
// Valid
value, ok := intMap["foo"]
println(value, ok)
// Also valid
value := intMap["foo"]
println(value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment