From 848f961c277525ebba3ab08fadc116970bcfed24 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 14 Apr 2020 11:56:56 +0100 Subject: Add godoc documentation --- pkg/hocr/lines.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/hocr/lines.go') diff --git a/pkg/hocr/lines.go b/pkg/hocr/lines.go index 1387574..942bd01 100644 --- a/pkg/hocr/lines.go +++ b/pkg/hocr/lines.go @@ -20,6 +20,7 @@ import ( "rescribe.xyz/utils/pkg/line" ) +// LineText extracts the text from an OcrLine func LineText(l OcrLine) (string) { linetext := "" @@ -88,7 +89,7 @@ func parseLineDetails(h Hocr, i *image.Gray, name string) (line.Details, error) } // GetLineDetails parses a hocr file and returns a corresponding -// line.Details, including image extracts for each line. +// line.Details, including image extracts for each line func GetLineDetails(hocrfn string) (line.Details, error) { var newlines line.Details @@ -121,7 +122,7 @@ func GetLineDetails(hocrfn string) (line.Details, error) { } // GetLineBasics parses a hocr file and returns a corresponding -// line.Details, without any image extracts. +// line.Details, without any image extracts func GetLineBasics(hocrfn string) (line.Details, error) { var newlines line.Details -- cgit v1.2.1-24-ge1ad