Versions in this module Expand all Collapse all v0 v0.0.2 Nov 16, 2024 Changes in this version + var ConfigXprinterT80Q = PrinterConfig v0.0.1 Nov 16, 2024 Changes in this version + const JustifyCenter + const JustifyLeft + const JustifyRight + const QRCodeErrorCorrectionLevelH + const QRCodeErrorCorrectionLevelL + const QRCodeErrorCorrectionLevelM + const QRCodeErrorCorrectionLevelQ + var ConfigEpsonTMT20II = PrinterConfig + var ConfigEpsonTMT88II = PrinterConfig + var ConfigSOL802 = PrinterConfig + type Escpos struct + Style Style + func New(dst io.Writer) (e *Escpos) + func (e *Escpos) BarcodeHeight(p uint8) (int, error) + func (e *Escpos) BarcodeWidth(p uint8) (int, error) + func (e *Escpos) Bold(p bool) *Escpos + func (e *Escpos) Codabar(code string) (int, error) + func (e *Escpos) Code128(code string) (int, error) + func (e *Escpos) Code39(code string) (int, error) + func (e *Escpos) Code93(code string) (int, error) + func (e *Escpos) Cut() (int, error) + func (e *Escpos) DefaultLineSpacing() (int, error) + func (e *Escpos) DisableKanjiMode() (int, error) + func (e *Escpos) EAN13(code string) (int, error) + func (e *Escpos) EAN8(code string) (int, error) + func (e *Escpos) HRIFont(p bool) (int, error) + func (e *Escpos) HRIPosition(p uint8) (int, error) + func (e *Escpos) ITF(code string) (int, error) + func (e *Escpos) Initialize() (int, error) + func (e *Escpos) Justify(p uint8) *Escpos + func (e *Escpos) LineFeed() (int, error) + func (e *Escpos) LineFeedD(p uint8) (int, error) + func (e *Escpos) LineSpacing(p uint8) (int, error) + func (e *Escpos) MotionUnits(x, y uint8) (int, error) + func (e *Escpos) Print() error + func (e *Escpos) PrintAndCut() error + func (e *Escpos) PrintImage(image image.Image) (int, error) + func (e *Escpos) PrintNVBitImage(p uint8, mode uint8) (int, error) + func (e *Escpos) QRCode(code string, model bool, size uint8, correctionLevel uint8) (int, error) + func (e *Escpos) Reverse(p bool) *Escpos + func (e *Escpos) Rotate(p bool) *Escpos + func (e *Escpos) SelectCodePage(codePage uint8) (int, error) + func (e *Escpos) SetConfig(conf PrinterConfig) + func (e *Escpos) Size(width uint8, height uint8) *Escpos + func (e *Escpos) UPCA(code string) (int, error) + func (e *Escpos) UPCE(code string) (int, error) + func (e *Escpos) Underline(p uint8) *Escpos + func (e *Escpos) UpsideDown(p bool) *Escpos + func (e *Escpos) Write(data string) (int, error) + func (e *Escpos) WriteRaw(data []byte) (int, error) + func (e *Escpos) WriteWEU(data string) (int, error) + type PrinterConfig struct + DisableBold bool + DisableJustify bool + DisableReverse bool + DisableRotate bool + DisableUnderline bool + DisableUpsideDown bool + type Style struct + Bold bool + Height uint8 + Justify uint8 + Reverse bool + Rotate bool + Underline uint8 + UpsideDown bool + Width uint8