- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for pathpkg (0.38 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/gofmt/testdata/import.input
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 28 23:33:26 UTC 2019 - 2.1K bytes - Viewed (0) -
src/cmd/gofmt/testdata/import.golden
import /* why */ /* comment here? */ ( /* comment */ "fmt" "math" ) // Reset it again //line :100 // Dedup with different import styles import ( "path" . "path" _ "path" pathpkg "path" ) /* comment */ import ( "fmt" "math" // for Abs // This is a new run "errors" "fmt" ) // End an import declaration in the same line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 28 23:33:26 UTC 2019 - 2.1K 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/vendor/golang.org/x/tools/go/ast/astutil/imports.go
// If name is not empty, it is used to rename the import. // // For example, calling // // AddNamedImport(fset, f, "pathpkg", "path") // // adds // // import pathpkg "path" func AddNamedImport(fset *token.FileSet, f *ast.File, name, path string) (added bool) { if imports(f, name, path) { return false } newImport := &ast.ImportSpec{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 21:56:21 UTC 2022 - 13.4K 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)