output

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

type FileReader interface {
	ReadFile(filename string) ([]byte, error)
}

type HTMLPrinter

type HTMLPrinter struct {
	*TextPrinter
	// contains filtered or unexported fields
}

func NewHTMLPrinter

func NewHTMLPrinter(w io.Writer, fr FileReader) *HTMLPrinter

func (*HTMLPrinter) Finish

func (*HTMLPrinter) Finish()

func (*HTMLPrinter) Print

func (p *HTMLPrinter) Print(dups [][]*syntax.Node) error

type PlumbingPrinter

type PlumbingPrinter struct {
	*TextPrinter
}

func NewPlumbingPrinter

func NewPlumbingPrinter(w io.Writer, fr FileReader) *PlumbingPrinter

func (*PlumbingPrinter) Finish

func (p *PlumbingPrinter) Finish()

func (*PlumbingPrinter) Print

func (p *PlumbingPrinter) Print(dups [][]*syntax.Node) error

type Printer

type Printer interface {
	Print(dups [][]*syntax.Node) error
	Finish()
}

type TextPrinter

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

func NewTextPrinter

func NewTextPrinter(w io.Writer, fr FileReader) *TextPrinter

func (*TextPrinter) Finish

func (p *TextPrinter) Finish()

func (*TextPrinter) Print

func (p *TextPrinter) Print(dups [][]*syntax.Node) error

Jump to

Keyboard shortcuts

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