Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for findModulePath (0.69 sec)

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

    	modFilePath := modFilePath(modRoot)
    	if _, err := fsys.Stat(modFilePath); err == nil {
    		base.Fatalf("go: %s already exists", modFilePath)
    	}
    
    	if modPath == "" {
    		var err error
    		modPath, err = findModulePath(modRoot)
    		if err != nil {
    			base.Fatal(err)
    		}
    	} else if err := module.CheckImportPath(modPath); err != nil {
    		if pathErr, ok := err.(*module.InvalidPathError); ok {
    			pathErr.Kind = "module"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
Back to top