Created
January 11, 2020 00:28
-
-
Save monkrus/6be61dd774dffed38ce715474bc9f628 to your computer and use it in GitHub Desktop.
Getting partial value with underscore operator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| statePopulations := map[string]int{ | |
| "California": 39250017, | |
| "Texas": 27862596, | |
| "Florida": 20612439, | |
| } | |
| for _, v := range statePopulations { | |
| fmt.Println(v) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment