Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ImportMode (0.17 sec)

  1. src/cmd/compile/internal/types2/api.go

    	// The semantics is like for ImporterFrom.ImportFrom except that
    	// dir and mode are ignored (since they are not present).
    	Import(path string) (*Package, error)
    }
    
    // ImportMode is reserved for future use.
    type ImportMode int
    
    // An ImporterFrom resolves import paths to packages; it
    // supports vendoring per https://golang.org/s/go15vendor.
    // Use go/importer to obtain an ImporterFrom implementation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. src/go/types/api.go

    	// The semantics is like for ImporterFrom.ImportFrom except that
    	// dir and mode are ignored (since they are not present).
    	Import(path string) (*Package, error)
    }
    
    // ImportMode is reserved for future use.
    type ImportMode int
    
    // An ImporterFrom resolves import paths to packages; it
    // supports vendoring per https://golang.org/s/go15vendor.
    // Use go/importer to obtain an ImporterFrom implementation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/stdlib_test.go

    	pkg  *Package
    	err  error
    }
    
    func (c *stdlibChecker) Import(path string) (*Package, error) {
    	panic("unimplemented: use ImportFrom")
    }
    
    func (c *stdlibChecker) ImportFrom(path, dir string, _ ImportMode) (*Package, error) {
    	if path == "unsafe" {
    		// unsafe cannot be type checked normally.
    		return Unsafe, nil
    	}
    
    	p, err := build.Default.Import(path, dir, build.FindOnly)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modindex/read.go

    }
    
    var installgorootAll = godebug.New("installgoroot").Value() == "all"
    
    // Import is the equivalent of build.Import given the information in Module.
    func (rp *IndexPackage) Import(bctxt build.Context, mode build.ImportMode) (p *build.Package, err error) {
    	defer unprotect(protect(), &err)
    
    	ctxt := (*Context)(&bctxt)
    
    	p = &build.Package{}
    
    	p.ImportPath = "."
    	p.Dir = filepath.Join(rp.modroot, rp.dir)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top