MCPcopy Create free account
hub / github.com/containerd/nerdctl / ReverseStrSlice

Function ReverseStrSlice

pkg/strutil/strutil.go:131–137  ·  view source on GitHub ↗
(in []string)

Source from the content-addressed store, hash-verified

129}
130
131func ReverseStrSlice(in []string) []string {
132 out := make([]string, len(in))
133 for i, v := range in {
134 out[len(in)-i-1] = v
135 }
136 return out
137}
138
139// ParseBoolOrAuto returns (nil, nil) if s is "auto"
140// https://github.com/moby/buildkit/blob/v0.9.1/cmd/buildkitd/config.go#L35-L42

Callers 5

StopMethod · 0.92
RemoveMethod · 0.92
DownMethod · 0.92
TestReverseStrSliceFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestReverseStrSliceFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…