Scanyonero/unit/inch.go
David Vogel 853a1bb58d Rework into FTP scanning server
- Rename to Scanyonero
- Add FTP server that ingests TIFF, PNG, JPEG or PDF files
- Add web interface to check and modify ingested files
- Rework how ocrmypdf is invoked

Basics are working, but the program is not in a usable state.
2025-05-14 12:08:38 +02:00

22 lines
395 B
Go

package unit
import "strconv"
// Inch denotes a distance, position or offset in inches.
type Inch float64
var _ Unit = Inch(0)
var _ Length = Inch(0)
func (v Inch) String() string {
return strconv.FormatFloat(float64(v), 'f', -1, 64) + "\u00A0inch"
}
func (Inch) UnitSymbol() string {
return "inch"
}
func (v Inch) Millimeters() Millimeter {
return Millimeter(v * MillimetersPerInch)
}