Documentation ¶
Index ¶
- Variables
- func Convert(in interface{}, from interface{}, to interface{}) (float64, error)
- func ExactConvert(in interface{}, from interface{}, to interface{}) (float64, error)
- func MustConvert(in interface{}, from interface{}, to interface{}) float64
- func MustExactConvert(in interface{}, from interface{}, to interface{}) float64
- type Unit
- type UnitFamily
Constants ¶
This section is empty.
Variables ¶
View Source
var ConvertRoundToPlaces = 6
Functions ¶
func ExactConvert ¶
func MustConvert ¶
func MustConvert(in interface{}, from interface{}, to interface{}) float64
func MustExactConvert ¶
func MustExactConvert(in interface{}, from interface{}, to interface{}) float64
Types ¶
type Unit ¶
type Unit int
func MustParseUnit ¶
func (Unit) Family ¶
func (self Unit) Family() UnitFamily
func (Unit) LongString ¶
type UnitFamily ¶
type UnitFamily int
const ( GeneralUnits UnitFamily = iota TemperatureUnits LengthUnits SpeedUnits AbsoluteUnit = math.MaxInt64 )
Click to show internal directories.
Click to hide internal directories.