Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 202 for importpath (0.22 sec)

  1. src/testing/internal/testdeps/deps.go

    }
    
    func (TestDeps) WriteProfileTo(name string, w io.Writer, debug int) error {
    	return pprof.Lookup(name).WriteTo(w, debug)
    }
    
    // ImportPath is the import path of the testing binary, set by the generated main function.
    var ImportPath string
    
    func (TestDeps) ImportPath() string {
    	return ImportPath
    }
    
    // testLog implements testlog.Interface, logging actions by package os.
    type testLog struct {
    	mu  sync.Mutex
    	w   *bufio.Writer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cgo_stale.txt

    env GOCACHE=$WORK/cache  # Use a fresh cache to avoid interference between runs.
    
    go build -x .
    stderr '[/\\]cgo'$GOEXE'["]? .* -importpath runtime/cgo'
    ! stale runtime/cgo
    
    
    # After runtime/cgo has been rebuilt and cached, it should not be rebuilt again.
    
    go build -x .
    ! stderr '[/\\]cgo'$GOEXE'["]? .* -importpath runtime/cgo'
    ! stale runtime/cgo
    
    
    -- go.mod --
    module example.com/m
    
    go 1.17
    -- m.go --
    package m
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 22:43:41 UTC 2022
    - 888 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/list_goroot_symlink.txt

    # source tree, with paths matching the one reported by 'go env GOROOT'.
    
    exec $WORK/lib/goroot/bin/go list -f '{{.ImportPath}}: {{.Dir}}' encoding/binary
    stdout '^encoding/binary: '$WORK${/}lib${/}goroot${/}src${/}encoding${/}binary'$'
    
    exec $WORK/lib/goroot/bin/go list -f '{{.ImportPath}}: {{.Dir}}' std
    stdout '^encoding/binary: '$WORK${/}lib${/}goroot${/}src${/}encoding${/}binary'$'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 17:01:07 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. src/go/doc/testdata/issue17788.0.golden

    // 
    PACKAGE issue17788
    
    IMPORTPATH
    	testdata/issue17788
    
    FILENAMES
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 11 15:59:01 UTC 2016
    - 91 bytes
    - Viewed (0)
  5. src/cmd/internal/cov/covcmd/cmddefs.go

    // MetaFileForPackage returns the expected name of the meta-data file
    // for the package whose import path is 'importPath' in cases where
    // we're using meta-data generated by the cover tool, as opposed to a
    // meta-data file created at runtime.
    func MetaFileForPackage(importPath string) string {
    	var r [32]byte
    	sum := sha256.Sum256([]byte(importPath))
    	copy(r[:], sum[:])
    	return coverage.MetaFilePref + fmt.Sprintf(".%x", r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 30 16:13:15 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/imports.go

    		}
    		f.Decls = append(f.Decls[:i], f.Decls[i+1:]...)
    		i--
    	}
    
    	return true
    }
    
    func isThirdParty(importPath string) bool {
    	// Third party package import path usually contains "." (".com", ".org", ...)
    	// This logic is taken from golang.org/x/tools/imports package.
    	return strings.Contains(importPath, ".")
    }
    
    // DeleteImport deletes the import path from the file f, if present.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 21:56:21 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  7. src/cmd/go/internal/work/gc.go

    	}
    	rewrite := ""
    
    	rewriteDir := a.Package.Dir
    	if cfg.BuildTrimpath {
    		importPath := a.Package.Internal.OrigImportPath
    		if m := a.Package.Module; m != nil && m.Version != "" {
    			rewriteDir = m.Path + "@" + m.Version + strings.TrimPrefix(importPath, m.Path)
    		} else {
    			rewriteDir = importPath
    		}
    		rewrite += a.Package.Dir + "=>" + rewriteDir + ";"
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  8. src/go/ast/import.go

    	c := s.(*ImportSpec).Comment
    	if c == nil {
    		return ""
    	}
    	return c.Text()
    }
    
    // collapse indicates whether prev may be removed, leaving only next.
    func collapse(prev, next Spec) bool {
    	if importPath(next) != importPath(prev) || importName(next) != importName(prev) {
    		return false
    	}
    	return prev.(*ImportSpec).Comment == nil
    }
    
    type posSpan struct {
    	Start token.Pos
    	End   token.Pos
    }
    
    type cgPos struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/go/doc/testdata/f.2.golden

    // The package f is a go/doc test for functions and factory ...
    PACKAGE f
    
    IMPORTPATH
    	testdata/f
    
    FILENAMES
    	testdata/f.go
    
    FUNCTIONS
    	// Exported must always be visible. Was issue 2824. 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 215 bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/shell.go

    		return cmdErr
    	}
    
    	// Fetch defaults from the package.
    	var p *load.Package
    	a := sh.action
    	if a != nil {
    		p = a.Package
    	}
    	var importPath string
    	if p != nil {
    		importPath = p.ImportPath
    		if desc == "" {
    			desc = p.Desc()
    		}
    		if dir == "" {
    			dir = p.Dir
    		}
    	}
    
    	out := string(cmdOut)
    
    	if !strings.HasSuffix(out, "\n") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top