Maps / Get map size (number of map entries) / Esse

Run Settings
LanguageGo
Language Version
Run Command
package main import "fmt" func main() { 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) }
Editor Settings
Theme
Key bindings
Full width
Lines