bradleyjkemp / memviz

Visualize your Go data structures using graphviz
MIT License
1.3k stars 51 forks source link

Special case rendering for sets #27

Open bradleyjkemp opened 6 years ago

bradleyjkemp commented 6 years ago

For maps of the form map[something]struct{} we can render these specially as a set (i.e. don't bother rendering the empty struct every time). Similar could be done for map[something]bool but that's less safe as that might not actually be a set