MCPcopy Create free account
hub / github.com/celer-pkg/celer / parseNameVersion

Method parseNameVersion

buildtools/build_tools.go:314–320  ·  view source on GitHub ↗
(nameVersion string)

Source from the content-addressed store, hash-verified

312}
313
314func (b BuildTools) parseNameVersion(nameVersion string) (string, string) {
315 if name, version, ok := strings.Cut(nameVersion, "@"); ok {
316 return name, version
317 }
318
319 return nameVersion, ""
320}
321
322// FindBuildTool find build tool with tool name.
323func FindBuildTool(ctx context.Context, nameVersion string) (*BuildTool, error) {

Callers 2

findToolMethod · 0.95
containsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected