Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for dirInModule (0.08 sec)

  1. src/cmd/go/internal/modload/import.go

    )
    
    // dirInModule locates the directory that would hold the package named by the given path,
    // if it were in the module with module path mpath and root mdir.
    // If path is syntactically not within mpath,
    // or if mdir is a local file tree (isLocal == true) and the directory
    // that would hold path is in a sub-module (covered by a go.mod below mdir),
    // dirInModule returns "", false, nil.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/load.go

    					// within module "std" either.
    					return "", errPkgIsBuiltin
    				}
    				return pkg, nil
    			}
    
    			pkg := pathpkg.Join(mainModulePrefix, suffix)
    			if _, ok, err := dirInModule(pkg, mainModulePrefix, modRoot, true); err != nil {
    				return "", err
    			} else if !ok {
    				// This main module could contain the directory but doesn't. Other main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
Back to top