render

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package render writes pawndoc output formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTML

func HTML(w io.Writer, pkg doc.Package) error

HTML writes a standalone HTML document.

func JSON

func JSON(w io.Writer, pkg doc.Package) error

JSON writes the renderer-neutral model.

func Markdown

func Markdown(w io.Writer, pkg doc.Package) error

Markdown writes a Markdown document.

Types

type SearchEntry

type SearchEntry struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Kind    string `json:"kind"`
	Summary string `json:"summary,omitempty"`
}

SearchEntry is a compact symbol record for search indexes.

func SearchIndex

func SearchIndex(pkg doc.Package) []SearchEntry

SearchIndex builds sorted search records.

Jump to

Keyboard shortcuts

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