Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrConversionImpossible ¶
func ErrConversionImpossible() error
ErrConversionImpossible returns the error given when a conversion isn't possible.
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
Converter knows how to convert from/to different units of measure.
func NewConverter ¶
func NewConverter() *Converter
NewConverter returns a pointer to a new Converter.
func (*Converter) AddConversion ¶
AddConversion adds a new conversion rule to the table in both directions.
Click to show internal directories.
Click to hide internal directories.