models

package
v0.0.0-...-b444c55 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BarCodeOption

type BarCodeOption struct {
	Height uint8  `json:"height"`
	Chr    uint8  `json:"chr"`
	Code   string `json:"code"`
}

BarCodeOption - print option for bar code

type Printer

type Printer struct {
	Line    bool   `json:"line"`
	Align   string `json:"align"`
	Style   string `json:"style"`
	Size    string `json:"size"`
	Text    string `json:"text"`
	Image   bool   `json:"image"`
	BarCode bool   `json:"barCode"`
	QrCode  bool   `json:"qrCode"`
}

Printer - params line

type PrinterLine

type PrinterLine struct {
	Header  []Printer     `json:"header"`
	Lines   []Printer     `json:"lines"`
	Footer  []Printer     `json:"footer"`
	BarCode BarCodeOption `json:"barCode"`
}

PrinterLine - print collection

func LoadPrintModel

func LoadPrintModel(file string) (res PrinterLine, err error)

LoadPrintModel - lading model

Jump to

Keyboard shortcuts

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