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

Function prefixWith

cli/command/system/completion.go:122–128  ·  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

120
121// prefixWith prefixes every element in the slice with the given prefix.
122func prefixWith(prefix string, values []string) []string {
123 result := make([]string, len(values))
124 for i, v := range values {
125 result[i] = prefix + v
126 }
127 return result
128}
129
130// postfixWith appends postfix to every element in the slice.
131func postfixWith(postfix string, values []string) []string {

Callers 1

completeEventFiltersFunction · 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…