MCPcopy Index your code
hub / github.com/coder/coder / formatActiveDevelopers

Function formatActiveDevelopers

cli/util.go:280–294  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

278}
279
280func formatActiveDevelopers(n int) string {
281 developerText := "developer"
282 if n != 1 {
283 developerText = "developers"
284 }
285
286 var nStr string
287 if n < 0 {
288 nStr = "-"
289 } else {
290 nStr = strconv.Itoa(n)
291 }
292
293 return fmt.Sprintf("%s active %s", nStr, developerText)
294}

Callers 2

templatesToRowsFunction · 0.85
CreateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected