rend

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeThemes

func MergeThemes(themes []style.Theme) style.Theme

func RenderTheme

func RenderTheme(reader io.Reader, writer io.Writer, theme style.Theme) error

func WriteTheme

func WriteTheme(node *html.Node, theme style.Theme)

Types

type ChainTheme

type ChainTheme struct {
	Upstream style.Theme
	Inner    style.Theme
}

func (ChainTheme) Attributes

func (t ChainTheme) Attributes(tag string) style.Attributes

func (ChainTheme) Exists

func (t ChainTheme) Exists(tag string) bool

type FmtWriter

type FmtWriter struct {
	// contains filtered or unexported fields
}

func NewFmtWriter

func NewFmtWriter(writer io.Writer) *FmtWriter

func (*FmtWriter) Err

func (w *FmtWriter) Err() error

func (*FmtWriter) Print

func (w *FmtWriter) Print(a ...interface{})

func (*FmtWriter) Printf

func (w *FmtWriter) Printf(format string, a ...interface{})

func (*FmtWriter) Println

func (w *FmtWriter) Println(a ...interface{})

func (*FmtWriter) Printlnf

func (w *FmtWriter) Printlnf(format string, a ...interface{})

func (FmtWriter) Write

func (w FmtWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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