MCPcopy
hub / github.com/spf13/cobra / trimRightSpace

Function trimRightSpace

cobra.go:159–161  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

157}
158
159func trimRightSpace(s string) string {
160 return strings.TrimRightFunc(s, unicode.IsSpace)
161}
162
163// FIXME appendIfNotPresent is unused by cobra and should be removed in a version 2. It exists only for compatibility with users of cobra.
164

Callers 2

defaultUsageFuncFunction · 0.85
defaultHelpFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected