formatter

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsciiDoc

type AsciiDoc struct{}

func NewAsciiDoc

func NewAsciiDoc() *AsciiDoc

func (*AsciiDoc) Format

func (ad *AsciiDoc) Format(doc *document.Document) string

func (*AsciiDoc) FormatFragments

func (ad *AsciiDoc) FormatFragments(els ...element.Element) string

type Formatter

type Formatter interface {
	Format(doc *document.Document) string
	FormatFragments(els ...element.Element) string
}

type HTML

type HTML struct{}

func NewHTML

func NewHTML() *HTML

func (*HTML) Format

func (h *HTML) Format(doc *document.Document) string

func (*HTML) FormatFragments

func (h *HTML) FormatFragments(els ...element.Element) string

type Text

type Text struct{}

func NewText

func NewText() *Text

func (*Text) Format

func (t *Text) Format(doc *document.Document) string

func (*Text) FormatFragments

func (t *Text) FormatFragments(els ...element.Element) string

Jump to

Keyboard shortcuts

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