summaryrefslogtreecommitdiff
path: root/avg-lines/main.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-01-25 17:41:52 +0000
committerNick White <git@njw.name>2019-01-25 17:41:52 +0000
commit988658936cbcd8e92b35a66e1943bea0f9eaf3bc (patch)
tree2c58c77b4c777edb8cf87cf660932ab8b7378310 /avg-lines/main.go
parenta05e986286efe9168ea404729652650086bab4cc (diff)
gofmt
Diffstat (limited to 'avg-lines/main.go')
-rw-r--r--avg-lines/main.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/avg-lines/main.go b/avg-lines/main.go
index a953598..14b21bd 100644
--- a/avg-lines/main.go
+++ b/avg-lines/main.go
@@ -8,8 +8,8 @@ import (
"path/filepath"
"sort"
- "rescribe.xyz/go.git/lib/line"
"rescribe.xyz/go.git/lib/hocr"
+ "rescribe.xyz/go.git/lib/line"
"rescribe.xyz/go.git/lib/prob"
)
@@ -38,13 +38,13 @@ func main() {
for _, f := range flag.Args() {
var newlines line.Details
switch ext := filepath.Ext(f); ext {
- case ".prob":
- newlines, err = prob.GetLineDetails(f)
- case ".hocr":
- newlines, err = hocr.GetLineDetails(f)
- default:
- log.Printf("Skipping file '%s' as it isn't a .prob or .hocr\n", f)
- continue
+ case ".prob":
+ newlines, err = prob.GetLineDetails(f)
+ case ".hocr":
+ newlines, err = hocr.GetLineDetails(f)
+ default:
+ log.Printf("Skipping file '%s' as it isn't a .prob or .hocr\n", f)
+ continue
}
if err != nil {
log.Fatal(err)