MCPcopy
hub / github.com/elastic/go-elasticsearch / formatInt

Function formatInt

_examples/bulk/benchmarks/runner/runner.go:255–257  ·  view source on GitHub ↗

formatInt returns a number like 123456 as a string like 123.45K

(i int)

Source from the content-addressed store, hash-verified

253
254// formatInt returns a number like 123456 as a string like 123.45K
255func formatInt(i int) string {
256 return strings.ReplaceAll(strings.ToUpper(humanize.SIWithDigits(float64(i), 2, "")), " ", "")
257}

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected