- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for allowDirPath (0.15 sec)
-
src/cmd/go/internal/workcmd/edit.go
// 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 { path, version = strings.TrimSpace(before), strings.TrimSpace(after) } if err := module.CheckImportPath(path); err != nil { if !allowDirPath || !modfile.IsDirectoryPath(path) {
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
} 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 } 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 - 17.2K bytes - Viewed (0)