Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Magnitude ¶
a Magnitude unambiguously indicates a magnitude of something by combining a scalar and a unit example: 3.5 teaspons
type UnitKind ¶
type UnitKind uint8
a UnitKind indicates what kind of unit we're dealing with and can be used to enforce legal conversions. for example, it's not legal to convert between mile and teaspoon
type UnitMismatchError ¶
UnitMismatchError is an [Error] that contains information about the mismatched units
func (UnitMismatchError) Error ¶
func (e UnitMismatchError) Error() string
Click to show internal directories.
Click to hide internal directories.