Versions in this module Expand all Collapse all v0 v0.0.1 Mar 7, 2021 Changes in this version + const JustifyCenter + const JustifyLeft + const JustifyRight + const QRCodeErrorCorrectionLevelH + const QRCodeErrorCorrectionLevelL + const QRCodeErrorCorrectionLevelM + const QRCodeErrorCorrectionLevelQ + 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) Cut() (int, error) + func (e *Escpos) DefaultLineSpacing() (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) 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) 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) WriteGBK(data string) (int, error) + func (e *Escpos) WriteRaw(data []byte) (int, error) + func (e *Escpos) WriteWEU(data string) (int, error) + type Style struct + Bold bool + Height uint8 + Justify uint8 + Reverse bool + Rotate bool + Underline uint8 + UpsideDown bool + Width uint8