index

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAModuleDirectory  = errors.New("the target is not a valid module directory")
	ErrInvalidModuleVersion = errors.New(
		"mismatch between the version used in the module filename, the version written in its info file, and GOPROXY encoding rules",
	)
	ErrNothingToIndex = errors.New(
		"no module to index here, the directory was removed",
	)
)

Functions

func Directory

func Directory(dir string, written write.Files) error

Directory indexes the given directory and writes the result into `written`. If the directory is not a valid module directory, it returns an error.

func Goproxy

func Goproxy(path string) (write.Files, error)

Goproxy walks the directory tree at the given path and indexes all modules found. It returns the results of the indexing process.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL