Documentation
¶
Index ¶
- func RenderMarkdown(idx *schema.Index) string
- func SetMapIcons(on bool)
- func SetTimestamps(on bool)
- func WriteHTML(idx *schema.Index, path string) error
- func WriteHTMLWithGraph(idx *schema.Index, g *graph.SymGraph, maxNodes int, path string) error
- func WriteJSON(idx *schema.Index, path string) error
- func WriteMarkdown(idx *schema.Index, path string) error
- func WriteMermaid(idx *schema.Index, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderMarkdown ¶ added in v0.4.0
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 SetMapIcons ¶ added in v0.5.0
func SetMapIcons(on bool)
SetMapIcons turns remote icon requests in the HTML map on or off.
func SetTimestamps ¶ added in v0.5.0
func SetTimestamps(on bool)
SetTimestamps turns the generated_at stamp on or off for later writes.
func WriteHTML ¶
WriteHTML renders idx as a self-contained HTML file with an interactive force-directed dependency graph and writes it to path.
func WriteHTMLWithGraph ¶ added in v0.5.0
WriteHTMLWithGraph is WriteHTML plus an embedded, searchable symbol graph tab. A nil g produces the same page as WriteHTML.
func WriteMarkdown ¶ added in v0.4.0
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.
Types ¶
This section is empty.