- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for parsePathVersionOptional (0.18 sec)
-
src/cmd/go/internal/workcmd/edit.go
// during -fix). Even so, we need to make sure the version is a valid token. func allowedVersionArg(arg string) bool { return !modfile.MustQuote(arg) } // parsePathVersionOptional parses path[@version], using adj to // describe any errors. func parsePathVersionOptional(adj, arg string, allowDirPath bool) (path, version string, err error) { before, after, found := strings.Cut(arg, "@") if !found { path = arg } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/edit.go
path = arg if err := module.CheckImportPath(path); err != nil { base.Fatalf("go: -%s=%s: invalid path: %v", flag, arg, err) } return path } // parsePathVersionOptional parses path[@version], using adj to // describe any errors. func parsePathVersionOptional(adj, arg string, allowDirPath bool) (path, version string, err error) { if allowDirPath && modfile.IsDirectoryPath(arg) { return arg, "", nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 17.2K bytes - Viewed (0)