MCPcopy Create free account
hub / github.com/docker/secrets-engine / CutVersionExtra

Function CutVersionExtra

x/release/helper/release.go:238–246  ·  view source on GitHub ↗
(cv string)

Source from the content-addressed store, hash-verified

236}
237
238func CutVersionExtra(cv string) (string, string) {
239 if i := strings.IndexByte(cv, '-'); i >= 0 {
240 return cv[:i], cv[i:]
241 }
242 if i := strings.IndexByte(cv, '+'); i >= 0 {
243 return cv[:i], cv[i:]
244 }
245 return cv, ""
246}

Callers 2

GetNextVersionMethod · 0.85
Test_cutVersionExtraFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_cutVersionExtraFunction · 0.68