render

package
v0.0.0-...-575be89 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Grave      accentType = "grave"      // \`
	Acute      accentType = "acute"      // \'
	Circumflex accentType = "circumflex" // \^
	Umlaut     accentType = "umlaut"     // \"
	Tilde      accentType = "tilde"      // \~
	Cedilla    accentType = "cedilla"    // \c
	Dot        accentType = "dot"        // \.
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeRenderer

type NodeRenderer interface {
	Render(w io.Writer, n ast.Node, entering bool) (ast.WalkStatus, error)
}

func Defaults

func Defaults() []NodeRenderer

type NodeRendererFunc

type NodeRendererFunc func(w io.Writer, n ast.Node, entering bool) (ast.WalkStatus, error)

func (NodeRendererFunc) Render

func (nf NodeRendererFunc) Render(w io.Writer, n ast.Node, entering bool) (ast.WalkStatus, error)

type Option

type Option func(p *TextRenderer)

type TextRenderer

type TextRenderer struct{}

func NewTextRenderer

func NewTextRenderer() *TextRenderer

func (TextRenderer) Render

func (p TextRenderer) Render(w io.Writer, x ast.Expr) (mErr error)

Jump to

Keyboard shortcuts

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