render

package
v0.0.0-...-55358d4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package render implements rendering of Go code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeHTML

func CodeHTML(fset *token.FileSet, ex *doc.Example) (template.HTML, error)

CodeHTML renders the given example code as HTML.

func DeclHTML

func DeclHTML(fset *token.FileSet, decl ast.Decl, typ *doc.Type) (template.HTML, error)

DeclHTML renders the given decl as HTML.

func DocGemini

func DocGemini(d *comment.Doc) string

DocGemini returns a Gemini text formatting of the Doc.

func DocHTML

func DocHTML(d *comment.Doc) template.HTML

DocHTML returns an HTML formatting of the Doc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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