renderer

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderMarkdown added in v0.4.0

func RenderMarkdown(idx *schema.Index) string

RenderMarkdown returns a human-readable markdown overview of idx, designed for pasting into PR descriptions, GitHub issues, or chat. It's deterministic: modules and dependencies are sorted, so the output diffs cleanly between runs and between machines.

func WriteHTML

func WriteHTML(idx *schema.Index, path string) error

WriteHTML renders idx as a self-contained HTML file with an interactive force-directed dependency graph and writes it to path.

func WriteJSON

func WriteJSON(idx *schema.Index, path string) error

WriteJSON populates metadata fields on idx and writes it as indented JSON to path.

func WriteMarkdown added in v0.4.0

func WriteMarkdown(idx *schema.Index, path string) error

WriteMarkdown writes the rendered markdown to path. If the file already matches the new content byte-for-byte, the file is left untouched so commit hooks don't see spurious changes.

func WriteMermaid

func WriteMermaid(idx *schema.Index, path string) error

WriteMermaid generates a Mermaid graph LR diagram from idx and writes it to path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL