github.com/undoio/delve@v1.9.0/_fixtures/issue1531.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "runtime" 6 ) 7 8 type W struct { 9 x int 10 y int 11 } 12 13 func main() { 14 testMaps() 15 } 16 17 func testMaps() { 18 19 m := make(map[string]W) 20 21 m["t"] = W{} 22 m["s"] = W{} 23 m["r"] = W{} 24 m["v"] = W{} 25 26 mm := map[string]W{ 27 "r": {}, 28 "s": {}, 29 "t": {}, 30 "v": {}, 31 } 32 33 delete(mm, "s") 34 delete(m, "t") 35 runtime.Breakpoint() 36 fmt.Println(m, mm) 37 }