initpy/go-book — Issue #21: maps
Author: kless
Created: 2012-01-30 12:59:43+00:00
State: open

http://go-book.appspot.com/maps.html#how-to-declare-a-map

+ In the example, in line 9, `numbers[3]` should be `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)