output

package
v0.0.0-...-f73c30d Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugOutputter

type DebugOutputter struct {
	Writer io.Writer
}

func NewDebugOutputter

func NewDebugOutputter() *DebugOutputter

func (*DebugOutputter) Emit

func (o *DebugOutputter) Emit(t highlight.Token) error

func (*DebugOutputter) SetFile

func (o *DebugOutputter) SetFile(f *os.File) error

type Outputter

type Outputter interface {
	highlight.Emitter
	SetFile(f *os.File) error
}

type TextOutputter

type TextOutputter struct {
	Writer io.Writer
}

func NewTextOutputter

func NewTextOutputter() *TextOutputter

func (*TextOutputter) Emit

func (o *TextOutputter) Emit(t highlight.Token) error

func (*TextOutputter) SetFile

func (o *TextOutputter) SetFile(f *os.File) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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