-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconst.go
45 lines (36 loc) · 897 Bytes
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package escpos
// Font defined the font type
type Font uint8
const (
FontA Font = 0
FontB Font = 1
FontC Font = 2
)
// Alignment defines the text blignment
type Alignment uint8
const (
AlignLeft Alignment = 0
AlignCenter Alignment = 1
AlignRight Alignment = 2
)
// BarcodeType defines the type of barcode
type BarcodeType string
const (
// function type A
BarcodeTypeUPCA BarcodeType = "\x00"
BarcodeTypeUPCE BarcodeType = "\x01"
BarcodeTypeEAN13 BarcodeType = "\x02"
BarcodeTypeEAN8 BarcodeType = "\x03"
BarcodeTypeCODE39 BarcodeType = "\x04"
BarcodeTypeITF BarcodeType = "\x05"
BarcodeTypeCODABAR BarcodeType = "\x06"
// function type B
BarcodeTypeCODE128 BarcodeType = "\x49"
)
type ErrorStatus byte
const (
ErrorNone ErrorStatus = 0x00
ErrorCoverOpen ErrorStatus = 0x04
ErrorPaperOut ErrorStatus = 0x20
ErrorGeneric ErrorStatus = 0x40
)