map size
// :glot
package main
import "fmt"
func main() {
// :show start
m := map[string]int{}
size := len(m)
fmt.Printf("Size of empty map: %d\n\n", size)
m["foo"] = 1
size = len(m)
fmt.Printf("Size of map: %d\n\n", size)
// :show end
}INFO