mirror of
https://github.com/Dadido3/Scanyonero.git
synced 2025-06-06 01:10:00 +00:00
- 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.
22 lines
395 B
Go
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)
|
|
}
|