Closed bradleyjkemp closed 5 years ago
@bradleyjkemp I would love to see this change being merged into master.
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
collections.go | 5 | 8 | 62.5% | ||
<!-- | Total: | 8 | 11 | 72.73% | --> |
Totals | |
---|---|
Change from base Build 75: | 0.2% |
Covered Lines: | 228 |
Relevant Lines: | 256 |
Hey @piotrkowalczuk, thanks for the prod about this. Could you let me know if this fixes the problems you were encountering?
@bradleyjkemp Thanks for quick response!
My output looks like
Error: bad label format <name> task |{<f0> name | "generate-beggining"} |<f1> anchor|{<f2> err | error(nil)} |{<f3> result | interface {}(nil)}
Currently I have small hack for it. After passing it through strings.Replace(buf.String(), "interface {}(nil)", "interface(nil)", -1)
.
cat /tmp/memviz.dot | dot -Tpng -o /tmp/memviz.png
produces valid image.
Ah yes, good point: found a missing escapeString() call. PR #35 should fix your issue.
If not then a small example of a datastructure that causes this failure would be very useful.
Fixes #29