mirror of
https://github.com/hanzoai/o11y.git
synced 2026-10-15 12:58:33 +00:00
18 lines
281 B
Go
18 lines
281 B
Go
package units
|
|
|
|
import "fmt"
|
|
|
|
type noneFormatter struct{}
|
|
|
|
func NewNoneFormatter() Formatter {
|
|
return &noneFormatter{}
|
|
}
|
|
|
|
func (*noneFormatter) Name() string {
|
|
return "none"
|
|
}
|
|
|
|
func (f *noneFormatter) Format(value float64, unit string) string {
|
|
return fmt.Sprintf("%v", value)
|
|
}
|