etp

package module
v0.0.0-...-497e640 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

README

Epson template printer (ETP)

A golang package for generating print commands for Epsion TMT88IV printer (and compatible) using templates.

Notes

This package was developed using "EPSON Paper Roll Printers ESC/POS Application Programming Guide Ver. 10.05" found somewhere on internet. Thank you.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

type Printer struct {
	Model            model.Printer
	Template         string
	SuppressCommands bool
	// contains filtered or unexported fields
}

func New

func New(modelName, template string) (Printer, error)

func (Printer) AddFuncs

func (p Printer) AddFuncs(t *template.Template)

func (Printer) Commands

func (p Printer) Commands() map[string]model.Command

func (Printer) ConvertNewLines

func (p Printer) ConvertNewLines(s string) string

func (Printer) NewPrintTemplate

func (p Printer) NewPrintTemplate(name string) (*template.Template, error)

func (Printer) NewTemplate

func (p Printer) NewTemplate(name string) (*template.Template, error)

func (Printer) WriteTo

func (p Printer) WriteTo(w io.Writer, data interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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