ticket

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	COMMAND_INIT             = []byte{27, 82, 7}
	COMMAND_FEED_1_LINE      = []byte{27, 100, 1}
	COMMAND_FEED_AND_CUT     = []byte{29, 'V', 66, 0}
	COMMAND_OPEN_CASH_DRAWER = []byte{27, 112, 0, 60, 120}
	COMMAND_LINE             = []byte{10}

	COMMAND_FONT_SIZE_NORMAL = []byte{29, 33, 0}
	COMMAND_FONT_SIZE_WIDTH1 = []byte{29, 33, 16}
	COMMAND_FONT_SIZE_WIDTH2 = []byte{29, 33, 32}
)
View Source
var (
	ErrFieldNotProvided            = errors.New("field not provided")
	ErrFieldPrinterNameNotProvided = fmt.Errorf("%w: printer name", ErrFieldNotProvided)
)

Functions

func NewTicket

func NewTicket(opts ...TicketOption) (*ticket, error)

func WithDocumentName

func WithDocumentName(n string) func(*ticket)

func WithPrinterName

func WithPrinterName(n string) func(*ticket)

Types

type TicketOption

type TicketOption func(*ticket)

Directories

Path Synopsis
internal
printer
Windows printing.
Windows printing.

Jump to

Keyboard shortcuts

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