Documentation ¶
Index ¶
- Constants
- type BarcodeFormat
- type Escpos
- func (e *Escpos) Barcode(barcode string, format BarcodeFormat)
- func (e *Escpos) Cash()
- func (e *Escpos) ClearStored()
- func (e *Escpos) Cut()
- func (e *Escpos) CutPartial()
- func (e *Escpos) End()
- func (e *Escpos) Feed(params map[string]string)
- func (e *Escpos) FeedAndCut(params map[string]string)
- func (e *Escpos) Formfeed()
- func (e *Escpos) FormfeedN(n int)
- func (e *Escpos) Image(img image.Image)
- func (e *Escpos) Init()
- func (e *Escpos) Linefeed()
- func (e *Escpos) PrintRasterImage(img image.Image, incrementation int, xL, xH, yL, yH, dxL, dxH, dyL, dyH byte)
- func (e *Escpos) Pulse()
- func (e *Escpos) QRCode(code string, model bool, size uint8, ...) (int, error)
- func (e *Escpos) Raster(width, height, bytesWidth int, img_bw []byte)
- func (e *Escpos) ReadRaw(data []byte) (n int, err error)
- func (e *Escpos) ReadStatus(n byte) (byte, error)
- func (e *Escpos) SendEmphasize()
- func (e *Escpos) SendFontSize()
- func (e *Escpos) SendMoveX(x uint16)
- func (e *Escpos) SendMoveY(y uint16)
- func (e *Escpos) SendReverse()
- func (e *Escpos) SendRotate()
- func (e *Escpos) SendSmooth()
- func (e *Escpos) SendUnderline()
- func (e *Escpos) SendUpsidedown()
- func (e *Escpos) SetAlign(align string)
- func (e *Escpos) SetEmphasize(u uint8)
- func (e *Escpos) SetFont(font string)
- func (e *Escpos) SetFontSize(width, height uint8)
- func (e *Escpos) SetLang(lang string)
- func (e *Escpos) SetReverse(v uint8)
- func (e *Escpos) SetRotate(v uint8)
- func (e *Escpos) SetSmooth(v uint8)
- func (e *Escpos) SetUnderline(v uint8)
- func (e *Escpos) SetUpsidedown(v uint8)
- func (e Escpos) Stored() []byte
- func (e *Escpos) Text(params map[string]string, data string)
- func (e *Escpos) Write(data string) (int, error)
- func (e *Escpos) WriteLn(data string) (int, error)
- func (e *Escpos) WriteNode(name string, params map[string]string, data string)
- func (e *Escpos) WriteRaw(data []byte) (n int, err error)
- type QRCodeErrorCorrectionLevel
Constants ¶
View Source
const ( // ASCII DLE (DataLinkEscape) DLE byte = 0x10 // ASCII EOT (EndOfTransmission) EOT byte = 0x04 // ASCII GS (Group Separator) GS byte = 0x1D )
View Source
const (
GS8L_MAX_Y = 1662
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BarcodeFormat ¶
type BarcodeFormat int
const ( BarcodeFormatUPC_A BarcodeFormat = iota BarcodeFormatUPC_E BarcodeFormatEAN13 BarcodeFormatEAN8 BarcodeFormatCode39 BarcodeFormatCode128 = iota + 67 )
type Escpos ¶
type Escpos struct {
// contains filtered or unexported fields
}
func (*Escpos) Barcode ¶
func (e *Escpos) Barcode(barcode string, format BarcodeFormat)
Barcode sends a barcode to the printer.
func (*Escpos) ClearStored ¶ added in v1.0.6
func (e *Escpos) ClearStored()
func (*Escpos) FeedAndCut ¶
feed and cut based on parameters
func (*Escpos) PrintRasterImage ¶ added in v1.0.6
func (*Escpos) ReadStatus ¶
ReadStatus Read the status n from the printer
func (*Escpos) SendFontSize ¶
func (e *Escpos) SendFontSize()
type QRCodeErrorCorrectionLevel ¶
type QRCodeErrorCorrectionLevel uint8
const ( QRCodeErrorCorrectionLevelL QRCodeErrorCorrectionLevel = iota + 48 QRCodeErrorCorrectionLevelM QRCodeErrorCorrectionLevelQ QRCodeErrorCorrectionLevelH )
Click to show internal directories.
Click to hide internal directories.