Converter converts values from one unit to another.
| 11 | |
| 12 | // Converter converts values from one unit to another. |
| 13 | type Converter interface { |
| 14 | // Convert converts the given value to the given unit |
| 15 | Convert(v Value, to Unit) Value |
| 16 | |
| 17 | // Name returns the name of the converter |
| 18 | Name() string |
| 19 | } |
| 20 | |
| 21 | // noneConverter is a converter that does not convert. |
| 22 | type noneConverter struct{} |
no outgoing calls
no test coverage detected