Cartographer is a simple tool, it just prints out source locations of the
specified packages which loop over maps. So you can audit them, and find
some non-determinism bugs.

https://github.com/pwaller/cartographer

For anyone interested about how you might do this, the whole program is
less than 60 lines and the ast visitor is 7 lines:
https://github.com/pwaller/cartographer/blob/master/main.go

I'd be interested in knowing if such functionality already exists elsewhere
(in which case I'd love to document it in the readme!), or if I should add
this tool to a list somewhere.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to