- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 119 for isAbs (0.93 sec)
-
src/cmd/go/internal/run/run.go
} else if len(args) > 0 && !strings.HasPrefix(args[0], "-") { arg := args[0] var pkgs []*load.Package if strings.Contains(arg, "@") && !build.IsLocalImport(arg) && !filepath.IsAbs(arg) { var err error pkgs, err = load.PackagesAndErrorsOutsideModule(ctx, pkgOpts, args[:1]) if err != nil { base.Fatal(err) } } else { pkgs = load.PackagesAndErrors(ctx, pkgOpts, args[:1])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 6.9K bytes - Viewed (0) -
src/net/url/example_test.go
// Output: // example.org // 2001:0db8:85a3:0000:0000:8a2e:0370:7334 } func ExampleURL_IsAbs() { u := url.URL{Host: "example.com", Path: "foo"} fmt.Println(u.IsAbs()) u.Scheme = "http" fmt.Println(u.IsAbs()) // Output: // false // true } func ExampleURL_MarshalBinary() { u, _ := url.Parse("https://example.org") b, err := u.MarshalBinary() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 7.2K bytes - Viewed (0) -
src/path/filepath/symlink.go
if linksWalked > 255 { return "", errors.New("EvalSymlinks: too many links") } link, err := os.Readlink(dest) if err != nil { return "", err } if isWindowsDot && !IsAbs(link) { // On Windows, if "." is a relative symlink, // just return ".". break } path = link + path[end:] v := filepathlite.VolumeNameLen(link) if v > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:50 UTC 2024 - 3.3K bytes - Viewed (0) -
pkg/kubelet/kubeletconfig/configfiles/configfiles.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 10 17:13:59 UTC 2024 - 3.7K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux.go
return err } } return nil } // CheckCrossDevice - check if given path has any sub-mounts in the input mounts list. func (mts mountInfos) checkCrossMounts(path string) error { if !filepath.IsAbs(path) { return fmt.Errorf("Invalid argument, path (%s) is expected to be absolute", path) } var crossMounts mountInfos for _, mount := range mts { // Add a separator to indicate that this is a proper mount-point.
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/cmd/internal/objabi/line.go
// where prefix must match a leading sequence of path elements // and is either removed entirely or replaced by the replacement. func AbsFile(dir, file, rewrites string) string { abs := file if dir != "" && !filepath.IsAbs(file) { abs = filepath.Join(dir, file) } abs, rewritten := ApplyRewrites(abs, rewrites) if !rewritten && buildcfg.GOROOT != "" && hasPathPrefix(abs, buildcfg.GOROOT) { abs = "$GOROOT" + abs[len(buildcfg.GOROOT):]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 23:10:31 UTC 2023 - 3.8K bytes - Viewed (0) -
tools/docker-builder/builder/tar.go
"time" ) func WriteArchiveFromFiles(base string, files map[string]string, out io.Writer) error { tw := tar.NewWriter(out) defer tw.Close() for dest, srcRel := range files { src := srcRel if !filepath.IsAbs(src) { src = filepath.Join(base, srcRel) } i, err := os.Stat(src) if err != nil { return err } isDir := i.IsDir() ts := src write := func(src string) error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 29 17:01:46 UTC 2022 - 3.7K bytes - Viewed (0) -
src/cmd/go/internal/work/init.go
buildModeInit() if err := fsys.Init(base.Cwd()); err != nil { base.Fatal(err) } // Make sure -pkgdir is absolute, because we run commands // in different directories. if cfg.BuildPkgdir != "" && !filepath.IsAbs(cfg.BuildPkgdir) { p, err := filepath.Abs(cfg.BuildPkgdir) if err != nil { fmt.Fprintf(os.Stderr, "go: evaluating -pkgdir: %v\n", err) base.SetExitStatus(2) base.Exit() } cfg.BuildPkgdir = p }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 19:13:34 UTC 2023 - 12.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/config.go
"k8s.io/apimachinery/pkg/util/sets" "k8s.io/apiserver/pkg/apis/apiserver" apiserverv1 "k8s.io/apiserver/pkg/apis/apiserver/v1" ) func makeAbs(path, base string) (string, error) { if filepath.IsAbs(path) { return path, nil } if len(base) == 0 || base == "." { cwd, err := os.Getwd() if err != nil { return "", err } base = cwd } return filepath.Join(base, path), nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 5.8K bytes - Viewed (0) -
tools/docker-builder/crane.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 26 01:07:39 UTC 2023 - 6K bytes - Viewed (0)