receiptCustom

package
v0.0.0-...-cc65bd0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instruction

type Instruction struct {
	Type       string `json:"Type"`
	Value      string `json:"Value"`
	LineConfig *LineConfig
}

type LineConfig

type LineConfig struct {
	FontSize float64 `json:"FontSize"`
	Width    float64 `json:"Width"`
	Height   float64 `json:"Height"`
	NewLine  int     `json:"NewLine"`
	Align    string  `json:"Align"`
}

type PageConfig

type PageConfig struct {
	Orientation string `json:"Orientation"`
	Format      string `json:"Format"`
	FontStyle   string `json:"FontStyle"`
}

type Receipt

type Receipt struct {
	PageConfig   *PageConfig
	Instructions []Instruction
}

func (*Receipt) Print

func (receipt *Receipt) Print(ffName string)

Jump to

Keyboard shortcuts

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