ondrajz / go-callvis

Visualize call graph of a Go program using Graphviz
https://ofabry.github.io/go-callvis
MIT License
5.85k stars 406 forks source link

remove cgo dependency to allow for cross-compilation #73

Open yashbhutwala opened 3 years ago

kroppt commented 2 years ago

A workaround for this is to use v0.6.0, which does not depend on cgo. However, you will probably still need graphviz.

ondrajz commented 2 years ago

Suggestion from @kroppt can work as workaround, but I think this should be solved by supporting non-cgo builds and making the cgo optional.

This could be done by providing two implementations for the graphviz rendering, one that uses cgo library and contains // +build cgo and the other as a fallback using the system graphviz tool for rendering graph and contains // +build !cgo.