Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isGoModRoot (0.09 sec)

  1. cmd/import-boss/main.go

    		return nil, fmt.Errorf("couldn't unmarshal %v: %w", path, err)
    	}
    	current.path = path
    	return &current, nil
    }
    
    // isGoModRoot checks if a directory is the root directory for a package
    // by checking for the existence of a 'go.mod' file in that directory.
    func isGoModRoot(path string) bool {
    	_, err := os.Stat(filepath.Join(filepath.Dir(path), goModFile))
    	return err == nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top