Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 202 for importpath (0.15 sec)

  1. src/cmd/go/testdata/script/mod_list_std.txt

    ! stdout ^golang\.org/x/
    
    
    # Within std, the vendored dependencies of cmd should still appear to be part of cmd.
    
    go list -f '{{if .Standard}}{{.ImportPath}}{{end}}' cmd
    stdout ^cmd/vendor/golang\.org/x/arch/x86/x86asm
    
    go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' cmd
    ! stdout .
    
    go list cmd/...
    stdout ^cmd/compile
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 28 18:50:20 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. src/go/doc/doc.go

    // then lookupPackage returns that import.
    // If multiple packages are imported as name, importPath returns "", false.
    // Otherwise, if name is the name of p itself, importPath returns "", true,
    // to signal a reference to p.
    // Otherwise, importPath returns "", false.
    func (p *Package) lookupPackage(name string) (importPath string, ok bool) {
    	if path, ok := p.importByName[name]; ok {
    		if path == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/cmd/doc/pkg.go

    		for _, root := range codeRoots() {
    			if pkg.build.Dir == root.dir {
    				importPath = root.importPath
    				break
    			}
    			if strings.HasPrefix(pkg.build.Dir, root.dir+string(filepath.Separator)) {
    				suffix := filepath.ToSlash(pkg.build.Dir[len(root.dir)+1:])
    				if root.importPath == "" {
    					importPath = suffix
    				} else {
    					importPath = root.importPath + "/" + suffix
    				}
    				break
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  4. cmd/preferredimports/preferredimports.go

    			for _, imp := range file.Imports {
    				importPath := strings.Replace(imp.Path.Value, "\"", "", -1)
    				pathSegments := strings.Split(importPath, "/")
    				importName := pathSegments[len(pathSegments)-1]
    				if imp.Name != nil {
    					importName = imp.Name.Name
    				}
    				for re, template := range aliases {
    					match := re.FindStringSubmatchIndex(importPath)
    					if match == nil {
    						// No match.
    						continue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/list_std.txt

    cd $GOROOT/src
    go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' ./...
    ! stdout .
    
    # Standard packages should include cmd, but not cmd/vendor.
    go list ./...
    stdout cmd/compile
    ! stdout vendor/golang.org
    ! stdout cmd/vendor
    
    # In GOPATH mode, packages vendored into GOROOT should be reported as standard.
    go list -f '{{if .Standard}}{{.ImportPath}}{{end}}' std cmd
    stdout golang.org/x/net/http2/hpack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 702 bytes
    - Viewed (0)
  6. src/cmd/go/internal/load/search.go

    		return func(p *Package) bool { return p.Standard }
    	case pattern == "cmd":
    		return func(p *Package) bool { return p.Standard && strings.HasPrefix(p.ImportPath, "cmd/") }
    	default:
    		matchPath := pkgpattern.MatchPattern(pattern)
    		return func(p *Package) bool { return matchPath(p.ImportPath) }
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 16:43:40 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/list_test_err.txt

    # "go list -test" from returning useful information.
    
    # go list -e prints information for all test packages.
    # The syntax error is shown in the package error field.
    go list -e -test -deps -f '{{.ImportPath}} {{.Error | printf "%q"}}' syntaxerr
    stdout 'pkgdep <nil>'
    stdout 'testdep_a <nil>'
    stdout 'testdep_b <nil>'
    stdout 'syntaxerr <nil>'
    stdout 'syntaxerr \[syntaxerr.test\] <nil>'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 23:08:19 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/importOptimizer/AbstractAnalysisApiImportOptimizerTest.kt

                analyseImports(mainFile)
            }
    
            val importAnalysisRendered = buildString {
                val sortedUsedDeclarations = importsAnalysis.usedDeclarations
                    .toSortedMap(compareBy { importPath -> importPath.toString() })
                    .mapValues { (_, importedNames) -> importedNames.sorted() }
    
                appendLine("USED DECLARATIONS:")
                for ((path, elements) in sortedUsedDeclarations) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Mar 27 16:04:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/list_import_err.txt

    # not the imported package.
    
    env GO111MODULE=off # simplify vendor layout for test
    
    go list -e -deps -f '{{.ImportPath}}: {{.Error}}' ./importvendor
    stdout 'importvendor: importvendor[\\/]p.go:2:8: vendor/p must be imported as p'
    stdout 'vendor/p: <nil>'
    
    go list -e -deps -f '{{.ImportPath}}: {{.Error}}' ./importinternal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 10 20:27:52 UTC 2023
    - 771 bytes
    - Viewed (0)
  10. src/go/doc/testdata/template.txt

    {{synopsis .Doc}}
    PACKAGE {{.Name}}
    
    IMPORTPATH
    	{{.ImportPath}}
    
    {{with .Imports}}IMPORTS
    {{range .}}	{{.}}
    {{end}}
    {{end}}{{/*
    
    */}}FILENAMES
    {{range .Filenames}}	{{.}}
    {{end}}{{/*
    
    */}}{{with .Consts}}
    CONSTANTS
    {{range .}}	{{synopsis .Doc}}
    	{{node .Decl $.FSet}}
    
    {{end}}{{end}}{{/*
    
    */}}{{with .Vars}}
    VARIABLES
    {{range .}}	{{synopsis .Doc}}
    	{{node .Decl $.FSet}}
    
    {{end}}{{end}}{{/*
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 1.1K bytes
    - Viewed (0)
Back to top