From 3080194dc11f6fb6fd40bc51ccc7595a602b7b68 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 13 Apr 2019 00:06:51 +0200 Subject: Rename and improve the information tool --- brother-info/main.go | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 brother-info/main.go (limited to 'brother-info') diff --git a/brother-info/main.go b/brother-info/main.go deleted file mode 100644 index a41d5e0..0000000 --- a/brother-info/main.go +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "log" - - "janouch.name/sklad/ql" -) - -func main() { - printer, err := ql.Open() - if err != nil { - log.Fatalln(err) - } - if printer == nil { - log.Fatalln("no suitable printer found") - } - - defer printer.Close() - - if err := printer.Initialize(); err != nil { - log.Fatalln(err) - } - if err := printer.UpdateStatus(); err != nil { - log.Fatalln(err) - } - log.Printf("status\n%s", printer.LastStatus) -} -- cgit v1.2.3-70-g09d2