diff options
author | Nick White <git@njw.name> | 2019-01-25 17:41:52 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-01-25 17:41:52 +0000 |
commit | 988658936cbcd8e92b35a66e1943bea0f9eaf3bc (patch) | |
tree | 2c58c77b4c777edb8cf87cf660932ab8b7378310 /lib/line | |
parent | a05e986286efe9168ea404729652650086bab4cc (diff) |
gofmt
Diffstat (limited to 'lib/line')
-rw-r--r-- | lib/line/line.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/line/line.go b/lib/line/line.go index 3adac0a..656fbce 100644 --- a/lib/line/line.go +++ b/lib/line/line.go @@ -8,15 +8,15 @@ import ( ) type Detail struct { - Name string + Name string Avgconf float64 - Img CopyableImg - Text string + Img CopyableImg + Text string OcrName string } type CopyableImg interface { - CopyLineTo(io.Writer) (error) + CopyLineTo(io.Writer) error } type Details []Detail @@ -38,7 +38,7 @@ type ImgDirect struct { Img image.Image } -func (i ImgDirect) CopyLineTo(w io.Writer) (error) { +func (i ImgDirect) CopyLineTo(w io.Writer) error { err := png.Encode(w, i.Img) if err != nil { return err @@ -52,7 +52,7 @@ type ImgPath struct { Path string } -func (i ImgPath) CopyLineTo(w io.Writer) (error) { +func (i ImgPath) CopyLineTo(w io.Writer) error { f, err := os.Open(i.Path) if err != nil { return err |