Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error spew.Dump bug #148

Open
icetech233 opened this issue Jun 18, 2024 · 2 comments
Open

error spew.Dump bug #148

icetech233 opened this issue Jun 18, 2024 · 2 comments

Comments

@icetech233
Copy link

icetech233 commented 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

@icetech233
Copy link
Author

correct is

@icetech233
Copy link
Author

(map[string]uintptr) (len=2) {
(string) (len=14) "desktop_handle": (uintptr) 0x10010,
(string) (len=11) "collect_win": (uintptr) 0
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant