14 lines
229 B
Go
Raw Normal View History

package formatter
import "fmt"
type noneFormatter struct{}
func NewNoneFormatter() Formatter {
return &noneFormatter{}
}
func (f *noneFormatter) Format(value float64, unit string) string {
return fmt.Sprintf("%v", value)
}