package main
import "fmt"
func main() {
var m = map[string]int{"a": 1, "b": 2, "c": 3}
v1 := m["a"]
fmt.Printf("a:%d\n", v1)
m["a"] = 5
v2 := m["a"]
fmt.Printf("a:%d\n", v2)
v3 := len(m)
fmt.Printf("the length of map is :%d\n", v3)
for k, v := range m {
fmt.Printf("%s =>:%d\n", k, v)
}
delete(m, "c")
for k, v := range m {
fmt.Printf("%s =>:%d\n", k, v)
}
m["c"] = 6
for k, v := range m {
fmt.Printf("%s =>:%d\n", k, v)
}
}