printer

package
v0.0.0-...-4b954a8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2018 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Funcs = map[string]interface{}{
	"altfont":     ret(altfont),
	"big":         ret(big),
	"double":      ret(double),
	"bold":        ret(bold),
	"reset":       ret(reset),
	"center":      ret(center),
	"aligncolumn": ret(alignColumn),
	"cut":         ret(cut),
	"image":       img,
	"qr":          qr,
}

Functions

func ImageToPrinter

func ImageToPrinter(img image.Image) ([]byte, error)

Types

type Printer

type Printer interface {
	Print(id model.ID, pin model.PIN, regBase, regURL string) error
}

func New

func New(l log.Logger, rw io.ReadWriter) Printer

func NewNil

func NewNil(l log.Logger) Printer

Jump to

Keyboard shortcuts

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