#148·go-spew

error spew.Dump bug

Author: icetech233Created Jun 18, 2024Updated Jun 18, 2024

define

var gloMap map[string]uintptr

but

spew.Dump("gloMap", gloMap)
(string) (len=6) "gloMap"
(map[string]uintptr) (len=2) {
 (string) (len=14) "desktop_handle": (uintptr) 0x10010,
 (string) (len=11) "collect_win": (uintptr) <nil>
}


 (string) (len=11) "collect_win": (uintptr) <nil>
 (string) (len=11) "collect_win": (uintptr) <nil>
 (string) (len=11) "collect_win": (uintptr) <nil>

was wrong