Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for importpath (0.15 sec)

  1. src/cmd/go/internal/load/pkg.go

    	// src/cmd/go/internal/modcmd/vendor.go
    	fold := str.ToFold(p.ImportPath)
    	if other := foldPath[fold]; other == "" {
    		foldPath[fold] = p.ImportPath
    	} else if other != p.ImportPath {
    		setError(ImportErrorf(p.ImportPath, "case-insensitive import collision: %q and %q", p.ImportPath, other))
    		return
    	}
    
    	if !SafeArg(p.ImportPath) {
    		setError(ImportErrorf(p.ImportPath, "invalid import path %q", p.ImportPath))
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/exec.go

    		p1 := a1.Package
    		if p1 == nil || p1.ImportPath == "" {
    			continue
    		}
    		// Add import mapping if needed
    		// (for imports like "runtime/cgo" that appear only in generated code).
    		if !vcfgMapped[p1.ImportPath] {
    			vcfg.ImportMap[p1.ImportPath] = p1.ImportPath
    		}
    		if a1.built != "" {
    			vcfg.PackageFile[p1.ImportPath] = a1.built
    		}
    		if p1.Standard {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  3. src/cmd/go/alldocs.go

    // syntax of package template. The default output is equivalent
    // to -f '{{.ImportPath}}'. The struct being passed to the template is:
    //
    //	type Package struct {
    //	    Dir            string   // directory containing package sources
    //	    ImportPath     string   // import path of package in dir
    //	    ImportComment  string   // path in import comment on package statement
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    of that package.
    The import names an identifier (PackageName) to be used for access and an ImportPath
    that specifies the package to be imported.
    </p>
    
    <pre class="ebnf">
    ImportDecl       = "import" ( ImportSpec | "(" { ImportSpec ";" } ")" ) .
    ImportSpec       = [ "." | PackageName ] ImportPath .
    ImportPath       = string_lit .
    </pre>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/data.go

    )
    
    func addstrdata1(ctxt *Link, arg string) {
    	eq := strings.Index(arg, "=")
    	dot := strings.LastIndex(arg[:eq+1], ".")
    	if eq < 0 || dot < 0 {
    		Exitf("-X flag requires argument of the form importpath.name=value")
    	}
    	pkg := arg[:dot]
    	if ctxt.BuildMode == BuildModePlugin && pkg == "main" {
    		pkg = *flagPluginPath
    	}
    	pkg = objabi.PathToPrefix(pkg)
    	name := pkg + arg[dot:eq]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
Back to top