Documentation ¶
Overview ¶
package measurer gathers all codes related to distance evaluation. --
Copyright (C) 2020 by Rafael Santiago
Use of this source code is governed by GPL-v2 license that can be found in the COPYING file.
package measurer gathers all codes related to distance evaluation. --
Copyright (C) 2020 by Rafael Santiago
Use of this source code is governed by GPL-v2 license that can be found in the COPYING file.
package measurer gathers all codes related to distance evaluation. --
Copyright (C) 2020 by Rafael Santiago
Use of this source code is governed by GPL-v2 license that can be found in the COPYING file.
package measurer gathers all codes related to distance evaluation. --
Copyright (C) 2020 by Rafael Santiago
Use of this source code is governed by GPL-v2 license that can be found in the COPYING file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KMCodeStat ¶
Expresses CodeStat measures in meters.
func (*KMCodeStat) Calibrate ¶
func (km *KMCodeStat) Calibrate(data interface{})
Calibrates data from a known struct.
func (*KMCodeStat) DistancePerFile ¶
func (km *KMCodeStat) DistancePerFile(filename string) float64
Returns the total distance (in km) of a specific previous loaded file.
func (*KMCodeStat) DistancePerLine ¶
func (km *KMCodeStat) DistancePerLine() float64
Returns in km the width of a entire filled line.
func (*KMCodeStat) DistancePerPage ¶
func (km *KMCodeStat) DistancePerPage() float64
Returns in km the distance of a entire filled page.
func (*KMCodeStat) TotalDistance ¶
func (km *KMCodeStat) TotalDistance() float64
Returns the total distance (in km) of all loaded codes.
type MCodeStat ¶
Expresses CodeStat measures in meters.
func (*MCodeStat) Calibrate ¶
func (m *MCodeStat) Calibrate(data interface{})
Calibrates data from a known struct.
func (*MCodeStat) DistancePerFile ¶
Returns the total distance (in m) of a specific previous loaded file.
func (*MCodeStat) DistancePerLine ¶
Returns in m the width of a entire filled line.
func (*MCodeStat) DistancePerPage ¶
Returns in m the distance of a entire filled page.
func (*MCodeStat) TotalDistance ¶
Returns the total distance (in m) of all loaded codes.
type MICodeStat ¶
Expresses CodeStat measures in miles.
func (*MICodeStat) Calibrate ¶
func (mi *MICodeStat) Calibrate(data interface{})
Calibrates data from a known struct.
func (*MICodeStat) DistancePerFile ¶
func (mi *MICodeStat) DistancePerFile(filename string) float64
Returns the total distance (in mi) of a specific previous loaded file.
func (*MICodeStat) DistancePerLine ¶
func (mi *MICodeStat) DistancePerLine() float64
Returns in mi the width of a entire filled line.
func (*MICodeStat) DistancePerPage ¶
func (mi *MICodeStat) DistancePerPage() float64
Returns in mi the distance of a entire filled page.
func (*MICodeStat) TotalDistance ¶
func (mi *MICodeStat) TotalDistance() float64
Returns the total distance (in mi) of all loaded codes.
type MMCodeStat ¶
Expresses CodeStat measures in millimiters.
func (*MMCodeStat) Calibrate ¶
func (mm *MMCodeStat) Calibrate(data interface{})
Calibrates basic measurements from a known passed struct.
func (*MMCodeStat) DistancePerFile ¶
func (mm *MMCodeStat) DistancePerFile(filename string) float64
Returns the total distance (in mm) of a specific previous loaded file.
func (*MMCodeStat) DistancePerLine ¶
func (mm *MMCodeStat) DistancePerLine() float64
Returns in mm the width of a entire filled line.
func (*MMCodeStat) DistancePerPage ¶
func (mm *MMCodeStat) DistancePerPage() float64
Returns in mm the distance of a entire filled page.
func (*MMCodeStat) TotalDistance ¶
func (mm *MMCodeStat) TotalDistance() float64
Returns the total distance (in mm) of all loaded codes.