Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRandomID ¶
func MakeRandomID() string
MakeRandomID generates a random ID based on the specifications set for a Star USB ID
Types ¶
type Printer ¶
type Printer struct { Vendor uint16 Product uint16 Manufacturer string ProductName string SerialNumber string Description string Address int Speed string Bus int Port int }
Printer defines the printer type
type PrinterList ¶
type PrinterList []Printer
PrinterList is an array of printers
func (*PrinterList) Discover ¶
func (pl *PrinterList) Discover() (int, error)
Discover scans the USB for Star devices
func (*PrinterList) SetGenericIDForAll ¶
func (pl *PrinterList) SetGenericIDForAll() (int, error)
SetGenericIDForAll set a generic ID for all printers without an ID Error is set if something goes wrong
Click to show internal directories.
Click to hide internal directories.