executor

package
v0.0.0-...-35658c0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tidy

func Tidy(pwd string) ([]byte, error)

func Upgrade

func Upgrade(pwd string, pkgs []*Module) ([]byte, error)

Types

type Module

type Module struct {
	Path      string                // module path
	Version   string                // module version
	Replace   *Module               // replaced by this module
	Time      *time.Time            // time version was created
	Update    *Module               // available update, if any (with -u)
	Main      bool                  // is this the main module?
	Indirect  bool                  // is this module only an indirect dependency of main module?
	Dir       string                // directory holding files for this module, if any
	GoMod     string                // path to go.mod file used when loading this module, if any
	GoVersion string                // go version used in module
	Error     *packages.ModuleError // error loading module
}

Module provides module information for a package.

func GetModuleUpdate

func GetModuleUpdate(pwd, module string) (*Module, error)

Jump to

Keyboard shortcuts

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