- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for pathpkg (0.28 sec)
-
src/io/fs/walk_test.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fs_test import ( . "io/fs" "os" pathpkg "path" "path/filepath" "reflect" "testing" "testing/fstest" ) type Node struct { name string entries []*Node // nil if the entry is a file mark int } var tree = &Node{ "testdata",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 15:21:18 UTC 2022 - 3K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/proxy.go
} return b, nil } func (p *proxyRepo) getBody(ctx context.Context, path string) (r io.ReadCloser, redactedURL string, err error) { fullPath := pathpkg.Join(p.url.Path, path) target := *p.url target.Path = fullPath target.RawPath = pathpkg.Join(target.RawPath, pathEscape(path)) resp, err := web.Get(web.DefaultSecurity, &target) if err != nil { return nil, "", err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 03 15:21:05 UTC 2023 - 13K bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
func (p *Package) exeFromImportPath() string { _, elem := pathpkg.Split(p.ImportPath) if cfg.ModulesEnabled { // If this is example.com/mycmd/v2, it's more useful to // install it as mycmd than as v2. See golang.org/issue/24667. if elem != p.ImportPath && isVersionElement(elem) { _, elem = pathpkg.Split(pathpkg.Dir(p.ImportPath)) } } return elem }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
src/cmd/go/internal/fsys/fsys.go
// allows for virtual overlays on top of the files on disk. package fsys import ( "encoding/json" "errors" "fmt" "internal/godebug" "io" "io/fs" "log" "os" pathpkg "path" "path/filepath" "runtime" "runtime/debug" "sort" "strings" "sync" "time" ) // Trace emits a trace event for the operation and file path to the trace log,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:35:34 UTC 2024 - 22.7K bytes - Viewed (0) -
src/cmd/go/internal/modload/import.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package modload import ( "context" "errors" "fmt" "go/build" "io/fs" "os" pathpkg "path" "path/filepath" "sort" "strings" "cmd/go/internal/cfg" "cmd/go/internal/fsys" "cmd/go/internal/gover" "cmd/go/internal/modfetch" "cmd/go/internal/modindex" "cmd/go/internal/par"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 15:21:14 UTC 2024 - 27.7K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
// if those packages are not found in existing dependencies of the main module. import ( "context" "errors" "fmt" "go/build" "internal/diff" "io/fs" "maps" "os" "path" pathpkg "path" "path/filepath" "runtime" "slices" "sort" "strings" "sync" "sync/atomic" "cmd/go/internal/base" "cmd/go/internal/cfg" "cmd/go/internal/fsys" "cmd/go/internal/gover"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0) -
src/cmd/go/internal/modload/query.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package modload import ( "bytes" "context" "errors" "fmt" "io/fs" "os" pathpkg "path" "slices" "sort" "strings" "sync" "time" "cmd/go/internal/cfg" "cmd/go/internal/gover" "cmd/go/internal/imports" "cmd/go/internal/modfetch" "cmd/go/internal/modfetch/codehost"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 11 22:29:11 UTC 2023 - 44.7K bytes - Viewed (0) -
src/go/build/build.go
"go/ast" "go/build/constraint" "go/doc" "go/token" "internal/buildcfg" "internal/godebug" "internal/goroot" "internal/goversion" "internal/platform" "io" "io/fs" "os" "os/exec" pathpkg "path" "path/filepath" "runtime" "slices" "strconv" "strings" "unicode" "unicode/utf8" _ "unsafe" // for linkname ) // A Context specifies the supporting context for a build.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0) -
src/syscall/fs_wasip1.go
if path == "" { return EINVAL } dirFd, pathPtr, pathLen := preparePath(path) errno := path_unlink_file(dirFd, pathPtr, pathLen) return errnoErr(errno) } func Rmdir(path string) error { if path == "" { return EINVAL } dirFd, pathPtr, pathLen := preparePath(path) errno := path_remove_directory(dirFd, pathPtr, pathLen) return errnoErr(errno) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24.1K bytes - Viewed (0) -
src/go/internal/srcimporter/srcimporter_test.go
// Make sure we recognize the situation and report an error. mathPkg := types.NewPackage("math", "math") // incomplete package importer := New(&build.Default, token.NewFileSet(), map[string]*types.Package{mathPkg.Path(): mathPkg}) _, err := importer.ImportFrom("math", ".", 0) if err == nil || !strings.HasPrefix(err.Error(), "reimport") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 6.5K bytes - Viewed (0)