2023-06-06 18:29:56 +05:30

18 lines
370 B
Go

package converter
// throughputConverter is an implementation of Converter that converts throughput
type throughputConverter struct {
}
func NewThroughputConverter() Converter {
return &throughputConverter{}
}
func (c *throughputConverter) Convert(v Value, to Unit) Value {
// There is no conversion to be done for throughput
return Value{
F: v.F,
U: to,
}
}