Versions in this module Expand all Collapse all v1 v1.0.0 Nov 6, 2025 Changes in this version + var ErrorDeviceNotFound = errors.New("Can not detect any USB printer") + var ErrorEndpointNotAccessable = errors.New("Can not access endpoint") + type UsbConfig struct + Config int + Endpoint int + Iface int + Product gousb.ID + Setup int + Vendor gousb.ID + type UsbZplPrinter struct + Config UsbConfig + func GetPrinters(ctx *gousb.Context, config UsbConfig) ([]*UsbZplPrinter, error) + func (printer *UsbZplPrinter) Write(buf []byte) (int, error)