mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 07:56:56 +00:00
14 lines
229 B
Go
14 lines
229 B
Go
|
|
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)
|
||
|
|
}
|