MCPcopy Create free account
hub / github.com/ethstorage/es-node / formatRange

Function formatRange

ethstorage/scanner/utils.go:199–207  ·  view source on GitHub ↗
(start, end uint64)

Source from the content-addressed store, hash-verified

197}
198
199func formatRange(start, end uint64) string {
200 if start == end {
201 return fmt.Sprintf("[%d]", start)
202 } else if end == start+1 {
203 return fmt.Sprintf("[%d,%d]", start, end)
204 } else {
205 return fmt.Sprintf("[%d-%d]", start, end)
206 }
207}

Callers 2

shortPrtFunction · 0.85
summaryLocalKvsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected