Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UnityMap = map[string]TypeUnity{ "und": UnityUnit, "km": UnityKilometer, "m": UnityMeter, "cm": UnityCentimeter, "mm": UnityMillimeter, "mg": UnityMiligram, "g": UnityGram, "kg": UnityKilogram, "t": UnityTon, "lb": UnityPound, "oz": UnityOunce, "ml": UnityMilliliter, "cl": UnityCentiliter, "l": UnityLiter, "m3": UnityCubicMeter, }
Functions ¶
This section is empty.
Types ¶
type Quantity ¶
func NewQuantity ¶
* * NewQuantity * @param val float64, unit TypeUnity * @return *Quantity *
type TypeUnity ¶
type TypeUnity int
func StrToUnity ¶
* * StrToUnity * @param s string * @return TypeUnity *
Click to show internal directories.
Click to hide internal directories.