Started developing the fax page

I have to change computers now, so I'm committing this mess
This commit is contained in:
2024-05-05 12:32:19 +01:00
parent 1959a2946c
commit 9c86b28fc0
122 changed files with 11082 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
package device
import (
"os"
)
type PrinterUSB struct {
Path string
}
func (p *PrinterUSB) Write(data []byte) (int, error) {
printer, err := os.OpenFile(p.Path, os.O_WRONLY, 0666)
if err != nil {
panic(err)
}
defer printer.Close()
return printer.Write(data)
}