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

Function pluralize

cli/required.go:108–113  ·  view source on GitHub ↗

nolint:unparam

(word string, number int)

Source from the content-addressed store, hash-verified

106
107//nolint:unparam
108func pluralize(word string, number int) string {
109 if number == 1 {
110 return word
111 }
112 return word + "s"
113}

Callers 4

RequiresMinArgsFunction · 0.85
RequiresMaxArgsFunction · 0.85
RequiresRangeArgsFunction · 0.85
ExactArgsFunction · 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…