MCPcopy Index your code
hub / github.com/docker/cli / getMaxLength

Function getMaxLength

cli/command/service/logs.go:182–184  ·  view source on GitHub ↗

getMaxLength gets the maximum length of the number in base 10

(i int)

Source from the content-addressed store, hash-verified

180
181// getMaxLength gets the maximum length of the number in base 10
182func getMaxLength(i int) int {
183 return len(strconv.Itoa(i))
184}
185
186type taskFormatter struct {
187 client client.APIClient

Callers 2

runLogsFunction · 0.85
formatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…