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

Function prefixWith

cli/command/container/completion.go:333–339  ·  view source on GitHub ↗

prefixWith prefixes every element in the slice with the given prefix.

(prefix string, values []string)

Source from the content-addressed store, hash-verified

331
332// prefixWith prefixes every element in the slice with the given prefix.
333func prefixWith(prefix string, values []string) []string {
334 result := make([]string, len(values))
335 for i, v := range values {
336 result[i] = prefix + v
337 }
338 return result
339}
340
341// postfixWith appends postfix to every element in the slice.
342func postfixWith(postfix string, values []string) []string {

Callers 3

completeIpcFunction · 0.70
completePidFunction · 0.70
completeSecurityOptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…