coverage goal is 70% by the end of the night.
This commit is contained in:
parent
95d0bcca4b
commit
54f3bd4d3a
4 changed files with 77 additions and 1 deletions
|
|
@ -56,5 +56,14 @@ func FloatValueFormatterWithFormat(v interface{}, floatFormat string) string {
|
|||
if typed, isTyped := v.(float64); isTyped {
|
||||
return fmt.Sprintf(floatFormat, typed)
|
||||
}
|
||||
if typed, isTyped := v.(float32); isTyped {
|
||||
return fmt.Sprintf(floatFormat, typed)
|
||||
}
|
||||
if typed, isTyped := v.(int); isTyped {
|
||||
return fmt.Sprintf(floatFormat, float64(typed))
|
||||
}
|
||||
if typed, isTyped := v.(int64); isTyped {
|
||||
return fmt.Sprintf(floatFormat, float64(typed))
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue