Output a D2 diagram (default) Render a D2 SVG in addition to the plain text version. Render edges using ELK. Filename without an extension. Output a Mermaid diagram (basic support only). Render a Mermaid SVG in addition to the plain text version. Style currently active states. TODO style errors red Render only these states Render RPC connections How deep to render from starting machines. Same as RenderDistance, but only
for submachines. Render detailed pipes as state -> state TODO RenderSkipMachsRe []regexp.Regexp
Distance to render from starting machines. With RenderStates, false will hide Exception, and without RenderStates true
will render Exception. Render RPC connections to non-rendered machines. Render a parent relation to and from non-rendered machines. Render pipes to non-rendered machines / states. Render inherited states. Render only these machines as starting points. Render only machines matching the regular expressions as starting points. Mark inherited states. TODO refac to RenderMarkOwnStates Render submachines nested inside their parents. See also RenderDepth. Render the parent relation. Ignored when RenderNestSubmachines. Render states which have pipes being rendered, even if the state should
not be rendered. Render group of pipes as mach->mach With RenderStates, false will hide Ready, and without RenderStates true
will render Ready. Render relation between states. TODO After relation
TODO specific relations Skip rendering of these machines. With RenderStates, false will hide Start, and without RenderStates true
will render Start. Render states bubbles. Render a tags box for machines having some.(*Renderer) GenDiagrams(ctx context.Context) error(*Renderer) RenderDefaults()
func NewRenderer(graph *amgraph.Graph, logger func(msg string, args ...any)) *Renderer
func PresetBird(r *Renderer)
func PresetMap(r *Renderer)
func PresetSingle(r *Renderer)
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.