Documentation
¶
Overview ¶
Package render implements a tool for rendering various "visualizations" of Go programs. -cgout Given a path for a .dot file, generates the callgraph of the program in that file. -ssaout Given a path for a folder, generates subfolders with files containing the ssa representation of each package in that file.
Index ¶
- func GraphvizToFile(config *config.Config, cg *callgraph.Graph, filename string) error
- func OutputSsaPackages(p *ssa.Program, dirName string) error
- func Run(flags Flags) error
- func WriteCrossFunctionGraph(wps *loadprogram.State, w io.Writer) error
- func WriteGraphviz(config *config.Config, cg *callgraph.Graph, w io.Writer) error
- func WriteHTMLCallgrph(program *ssa.Program, cg *callgraph.Graph, outPath string) error
- type Flags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GraphvizToFile ¶
GraphvizToFile writes the callgraph in Graphviz format to the filename provided as last argument
func OutputSsaPackages ¶
OutputSsaPackages writes the ssa representation of a program p. Each package is written in its own folder. This function may panic.
func WriteCrossFunctionGraph ¶
func WriteCrossFunctionGraph(wps *loadprogram.State, w io.Writer) error
WriteCrossFunctionGraph writes a graphviz representation of the inter-procedural dataflow graph to w.
func WriteGraphviz ¶
WriteGraphviz writes a graphviz representation the call-graph to w