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 /bucket-lines/main.go | |
parent | a05e986286efe9168ea404729652650086bab4cc (diff) |
gofmt
Diffstat (limited to 'bucket-lines/main.go')
-rw-r--r-- | bucket-lines/main.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bucket-lines/main.go b/bucket-lines/main.go index 36e9101..990e84c 100644 --- a/bucket-lines/main.go +++ b/bucket-lines/main.go @@ -9,17 +9,17 @@ import ( "os" "path/filepath" - "rescribe.xyz/go.git/lib/line" "rescribe.xyz/go.git/lib/hocr" + "rescribe.xyz/go.git/lib/line" "rescribe.xyz/go.git/lib/prob" ) func main() { b := BucketSpecs{ // minimum confidence, name - { 0, "bad" }, - { 0.95, "95to98" }, - { 0.98, "98plus" }, + {0, "bad"}, + {0.95, "95to98"}, + {0.98, "98plus"}, } flag.Usage = func() { @@ -61,13 +61,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) |