Skip to content

Instantly share code, notes, and snippets.

@monkrus
Created January 11, 2020 00:28
Show Gist options
  • Select an option

  • Save monkrus/6be61dd774dffed38ce715474bc9f628 to your computer and use it in GitHub Desktop.

Select an option

Save monkrus/6be61dd774dffed38ce715474bc9f628 to your computer and use it in GitHub Desktop.
Getting partial value with underscore operator
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