MCPcopy Create free account
hub / github.com/algolia/cli / rpad

Function rpad

pkg/cmdutil/usage.go:215–218  ·  view source on GitHub ↗

rpad adds padding to the right of a string.

(s string, padding int)

Source from the content-addressed store, hash-verified

213
214// rpad adds padding to the right of a string.
215func rpad(s string, padding int) string {
216 template := fmt.Sprintf("%%-%ds ", padding)
217 return fmt.Sprintf(template, s)
218}

Callers 1

AddBasicUsageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected