Documentation ¶
Index ¶
- Constants
- type Escpos
- func (e *Escpos) Barcode(barcode string, format int)
- func (e *Escpos) Cash()
- 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(params map[string]string, data string)
- func (e *Escpos) Init()
- func (e *Escpos) Linefeed()
- func (e *Escpos) Pulse()
- 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) SetTable(code int)
- 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 ¶
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 Escpos ¶
type Escpos struct {
// contains filtered or unexported fields
}
func (*Escpos) FeedAndCut ¶
feed and cut based on parameters
func (*Escpos) ReadStatus ¶
ReadStatus Read the status n from the printer
func (*Escpos) SendFontSize ¶
func (e *Escpos) SendFontSize()
Click to show internal directories.
Click to hide internal directories.