Documentation ¶
Index ¶
- type Escpos
- func (e *Escpos) Barcode(s string)
- func (e *Escpos) BarcodeHRI(n int)
- func (e *Escpos) BarcodeHRIFontSize(n int)
- func (e *Escpos) BarcodeHigth(n int)
- func (e *Escpos) Cut()
- func (e *Escpos) DefaultSpacing()
- 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(params map[string]string, data string)
- func (e *Escpos) Init()
- func (e *Escpos) Linefeed(n int)
- func (e *Escpos) MoveBaseSize()
- func (e *Escpos) OpenBeep()
- func (e *Escpos) OpenCashBox()
- func (e *Escpos) PrintAndFeed(i int)
- func (e *Escpos) PrintPic()
- func (e *Escpos) PrintSplitLine(n int, s string)
- func (e *Escpos) PrinterImage(img image.Image)
- func (e *Escpos) Pulse()
- func (e *Escpos) ReadString() string
- func (e *Escpos) Readbyte() (int, []byte)
- 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) SendRightSpace(n int)
- func (e *Escpos) SendRotate()
- func (e *Escpos) SendSmooth()
- func (e *Escpos) SendTo(w io.Writer) (int, error)
- func (e *Escpos) SendUnderline()
- func (e *Escpos) SendUpsidedown()
- func (e *Escpos) SetAlign(align string)
- func (e *Escpos) SetChineseOn()
- 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) SetLineSpacing(n int)
- func (e *Escpos) SetLocation(l, n int)
- func (e *Escpos) SetMoveSize(x, y int)
- func (e *Escpos) SetPrintPic()
- func (e *Escpos) SetPrinterType(n int)
- func (e *Escpos) SetReLocation(l, n int)
- 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) Text(params map[string]string, data string)
- func (e *Escpos) Write(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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Escpos ¶
type Escpos struct {
// contains filtered or unexported fields
}
func (*Escpos) BarcodeHRIFontSize ¶
print barcode HRI font size
func (*Escpos) FeedAndCut ¶
feed and cut based on parameters
func (*Escpos) PrintSplitLine ¶
func (*Escpos) PrinterImage ¶
print img 可用做打印二维码 使用33(24点双密度)
func (*Escpos) SendFontSize ¶
func (e *Escpos) SendFontSize()
func (*Escpos) SetPrintPic ¶
func (e *Escpos) SetPrintPic()
Click to show internal directories.
Click to hide internal directories.