From 0729d3b3174de5f0802276172dc46383de1447f2 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 6 May 2015 15:37:57 +0200 Subject: Runtime OS detection --- usblp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usblp.go') diff --git a/usblp.go b/usblp.go index 6a8bf55..da0dfd0 100644 --- a/usblp.go +++ b/usblp.go @@ -9,7 +9,7 @@ type LPDevice struct { *os.File } -func NewLPDevice(path string) (LPDevice, error) { +func NewLPDevice(path string) (Devicer, error) { f, err := os.OpenFile(path, os.O_RDWR, 0666) return LPDevice{f}, err } -- cgit v1.2.3