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)

}

examples/increment-map-element/increment_map_element.out
map[]
map[Foo:1]