- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 239 for tpath (0.2 sec)
-
src/go/ast/import.go
} // Sort the import specs by import path. // Remove duplicates, when possible without data loss. // Reassign the import paths to have the same position sequence. // Reassign each comment to the spec on the same line. // Sort the comments by new position. slices.SortFunc(specs, func(a, b Spec) int { ipath := importPath(a) jpath := importPath(b) r := cmp.Compare(ipath, jpath) if r != 0 { return r }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5.7K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux.go
// and mount path is /tmp/fs. In such a scenario we need to check for // `/tmp/fs/` to be a common prefix amount other mounts. mpath := strings.TrimSuffix(mount.Path, "/") + "/" ppath := strings.TrimSuffix(path, "/") + "/" if strings.HasPrefix(mpath, ppath) { // At this point if the mount point has a common prefix two conditions can happen.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.7K bytes - Viewed (0) -
src/go/internal/gccgoimporter/importer.go
} reader = rs fpath = "<lookup " + pkgpath + ">" // Take name from Name method (like on os.File) if present. if n, ok := rc.(interface{ Name() string }); ok { fpath = n.Name() } } else { fpath, err = findExportFile(searchpaths, pkgpath) if err != nil { return nil, err } r, closer, err := openExportFile(fpath) if err != nil { return nil, err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 18:41:18 UTC 2020 - 6.8K bytes - Viewed (0) -
src/net/http/httputil/reverseproxy.go
return a.Path + b.Path[1:], apath + bpath[1:] case !aslash && !bslash: return a.Path + "/" + b.Path, apath + "/" + bpath } return a.Path + b.Path, apath + bpath } // NewSingleHostReverseProxy returns a new [ReverseProxy] that routes // URLs to the scheme, host, and base path provided in target. If the // target's path is "/base" and the incoming request was for "/dir", // the target request will be for /base/dir. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 23:37:42 UTC 2024 - 24.9K bytes - Viewed (0) -
src/os/path_test.go
err = MkdirAll(path, 0777) if err != nil { t.Fatalf("MkdirAll %q (second time): %s", path, err) } // Make file. fpath := path + "/file" f, err := Create(fpath) if err != nil { t.Fatalf("create %q: %s", fpath, err) } defer f.Close() // Can't make directory named after file. err = MkdirAll(fpath, 0777) if err == nil { t.Fatalf("MkdirAll %q: no error", fpath) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 20:45:37 UTC 2023 - 3K bytes - Viewed (0) -
internal/s3select/sql/utils.go
return "", false } // Check if path expression ends in a key jpath := operand.Left.Left.Primary.JPathExpr n := len(jpath.PathExpr) if n > 0 && jpath.PathExpr[n-1].Key == nil { return "", false } ps := jpath.String() if idx := strings.LastIndex(ps, "."); idx >= 0 { // Get last part of path string. ps = ps[idx+1:] } return ps, true }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Nov 10 16:12:50 UTC 2021 - 3.6K bytes - Viewed (0) -
src/go/internal/gccgoimporter/importer_test.go
} } // gccgoPath returns a path to gccgo if it is present (either in // path or specified via GCCGO environment variable), or an // empty string if no gccgo is available. func gccgoPath() string { gccgoname := os.Getenv("GCCGO") if gccgoname == "" { gccgoname = "gccgo" } if gpath, gerr := exec.LookPath(gccgoname); gerr == nil { return gpath } return "" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:17:57 UTC 2022 - 7.2K bytes - Viewed (0) -
src/internal/filepathlite/path.go
func Base(path string) string { if path == "" { return "." } // Strip trailing slashes. for len(path) > 0 && IsPathSeparator(path[len(path)-1]) { path = path[0 : len(path)-1] } // Throw away volume name path = path[len(VolumeName(path)):] // Find the last element i := len(path) - 1 for i >= 0 && !IsPathSeparator(path[i]) { i-- } if i >= 0 { path = path[i+1:] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:50 UTC 2024 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/validation/field/path.go
"fmt" "strconv" ) type pathOptions struct { path *Path } // PathOption modifies a pathOptions type PathOption func(o *pathOptions) // WithPath generates a PathOption func WithPath(p *Path) PathOption { return func(o *pathOptions) { o.path = p } } // ToPath produces *Path from a set of PathOption func ToPath(opts ...PathOption) *Path { c := &pathOptions{} for _, opt := range opts { opt(c)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 11 08:23:53 UTC 2021 - 2.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/Referral.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 6.2K bytes - Viewed (0)