summaryrefslogtreecommitdiff
path: root/bucket-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 /bucket-lines/main.go
parenta05e986286efe9168ea404729652650086bab4cc (diff)
gofmt
Diffstat (limited to 'bucket-lines/main.go')
-rw-r--r--bucket-lines/main.go22
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)