gotools/internal/modindex/index.go

const CurrentVersion

type Index

type Entry

// ReadIndex reads the latest version of the on-disk index
// for the cache directory cd.
// It returns nil if there is none, or if there is an error.
func ReadIndex(cachedir string) (*Index, error) {}

func readIndexFrom(cd Abspath, bx io.Reader) (*Index, error) {}

// write the index as a text file
func writeIndex(cachedir Abspath, ix *Index) error {}

func writeIndexToFile(x *Index, fd *os.File) error {}

var IndexDir

// IndexDir computes the directory containing the index
func indexDir() (string, error) {}

// return the base name of the file containing the name of the current index
func indexNameBase(cachedir Abspath) string {}