modules

package
v0.0.178 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(args []string) error

func ListModuleFiles added in v0.0.106

func ListModuleFiles(root string, moduleDir string) ([]string, error)

func Render

func Render(w io.Writer, modules []Module) error

func RenderAnnotated added in v0.0.106

func RenderAnnotated(w io.Writer, modules []Module, annotations map[string]ModuleAnnotation) error

func UpdateLocalDepsAndRender added in v0.0.106

func UpdateLocalDepsAndRender(w io.Writer, dir string, dryRun bool) error

func UpdateLocalDepsAndRenderWithEnv added in v0.0.150

func UpdateLocalDepsAndRenderWithEnv(w io.Writer, dir string, dryRun bool, extraEnv []string) error

Types

type DependencyAnnotation added in v0.0.106

type DependencyAnnotation struct {
	Dir            string
	ModulePath     string
	OldVersion     string
	NewVersion     string
	RemovedReplace bool
}

type FindOptions added in v0.0.106

type FindOptions struct {
	NoTags bool
}

type Module

type Module struct {
	Dir            string
	Path           string
	Depends        []string
	LatestTag      string
	LatestTagKnown bool

	Requires []ModuleRequire
	Replaces []ModuleReplace
	// contains filtered or unexported fields
}

func Find

func Find(root string) ([]Module, error)

func FindWithOptions added in v0.0.106

func FindWithOptions(root string, opts FindOptions) ([]Module, error)

type ModuleAnnotation added in v0.0.106

type ModuleAnnotation struct {
	UpdatedDeps []DependencyAnnotation
	PreviousTag string
	NewTag      string
}

type ModuleReplace added in v0.0.106

type ModuleReplace struct {
	OldPath    string
	NewPath    string
	NewVersion string
}

type ModuleRequire added in v0.0.106

type ModuleRequire struct {
	Path    string
	Version string
}

Jump to

Keyboard shortcuts

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