package render
import "git.sr.ht/~sircmpwn/gddo/internal/render"
Package render implements rendering of Go code.
Index ¶
- func CodeHTML(fset *token.FileSet, ex *doc.Example) (template.HTML, error)
- func DeclHTML(fset *token.FileSet, decl ast.Decl, typ *doc.Type) (template.HTML, error)
- func DocGemini(d *comment.Doc) string
- func DocHTML(d *comment.Doc) template.HTML
Functions ¶
func CodeHTML ¶
CodeHTML renders the given example code as HTML.
func DeclHTML ¶
DeclHTML renders the given decl as HTML.
func DocGemini ¶
DocGemini returns a Gemini text formatting of the Doc.
func DocHTML ¶
DocHTML returns an HTML formatting of the Doc.
Source Files ¶
- Version
- v0.0.0-20240124133021-55358d4d592d (latest)
- Published
- Jan 24, 2024
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 2 days ago –
Tools for package owners.