Skip to content

Instantly share code, notes, and snippets.

@gerep
Created February 24, 2015 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerep/944d5408f0e1215fece7 to your computer and use it in GitHub Desktop.
Save gerep/944d5408f0e1215fece7 to your computer and use it in GitHub Desktop.
package main
import "fmt"
var (
coins = 50
users = []string{
"Matthew", "Sarah", "Augustus", "Heidi", "Emilie",
"Peter", "Giana", "Adriano", "Aaron", "Elizabeth",
}
distribution = make(map[string]int, len(users))
)
func main() {
fmt.Println(distribution)
fmt.Println("Coins left:", coins)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment