printer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultFormat = "terminal256"
	DefaultTheme  = "monokai"
)

Functions

This section is empty.

Types

type PrintFileInput

type PrintFileInput struct {
	Out      io.Writer
	Filename string
}

type PrintInput

type PrintInput struct {
	In       io.Reader
	Out      io.Writer
	Filename *string
}

type Printer

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

func New

func New(cfg *PrinterConfig) *Printer

func (*Printer) Print

func (p *Printer) Print(ipt *PrintInput) error

func (*Printer) PrintFile

func (p *Printer) PrintFile(ipt *PrintFileInput) error

type PrinterConfig

type PrinterConfig struct {
	Lang   string
	Format string
	Theme  string
}

Jump to

Keyboard shortcuts

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