gotools/internal/modindex/directories.go

type directory

// filterDirs groups the directories by import path,
// sorting the ones with the same import path by semantic version,
// most recent first.
func byImportPath(dirs []Relpath) (map[string][]*directory, error) {}

// sort the directories by semantic version, latest first
func semanticSort(v []*directory) {}

var modCacheRegexp

// DirToImportPathVersion computes import path and semantic version
func DirToImportPathVersion(dir Relpath) (string, string, error) {}

type region

func findDirs(root string, onlyAfter, onlyBefore time.Time) []Relpath {}

func (r *region) addDir(rt gopathwalk.Root, dir string) {}

func (r *region) skipDir(_ gopathwalk.Root, dir string) bool {}