MCPcopy Create free account
hub / github.com/cli/cli / plural

Function plural

script/ghmock/report.go:271–276  ·  view source on GitHub ↗
(n int, noun string)

Source from the content-addressed store, hash-verified

269}
270
271func plural(n int, noun string) string {
272 if n == 1 {
273 return "1 " + noun
274 }
275 return fmt.Sprintf("%d %ss", n, noun)
276}
277
278// missingNames lists, once each and in order, requests that had no response.
279func missingNames(requests []loggedRequest) []string {

Callers 4

cmdExportFunction · 0.85
scaffoldMethod · 0.85
printResultFunction · 0.85
formatRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected