Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(v float64, from, to traits.Consumable_Unit) (float64, error)
Convert converts from one consumable unit to another, if possible. Units can only be converted if within the same category, LITER -> CUBIC_METER, but not LITER -> METER. Returns an error if conversion is not possible.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.