Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pathpkg (0.11 sec)

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

    func (p *Package) exeFromImportPath() string {
    	_, elem := pathpkg.Split(p.ImportPath)
    	if cfg.ModulesEnabled {
    		// If this is example.com/mycmd/v2, it's more useful to
    		// install it as mycmd than as v2. See golang.org/issue/24667.
    		if elem != p.ImportPath && isVersionElement(elem) {
    			_, elem = pathpkg.Split(pathpkg.Dir(p.ImportPath))
    		}
    	}
    	return elem
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top