Increment map elements



examples/increment-map-element/increment_map_element.go
package main

import "fmt"

func main() {
    counter := map[string]int{}
    fmt.Println(counter)
    counter["Foo"]++
    fmt.Println(counter)

}

map[]
map[Foo:1]