updatechecker

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoModTidy added in v0.1.9

func DoModTidy() error

func DoUpgrade added in v0.1.9

func DoUpgrade(u Update) error

func GetNewVersion

func GetNewVersion(pkgpath string) (string, error)

func GetPackages

func GetPackages() ([]pkg, error)

func PrintVersionCheck added in v0.0.2

func PrintVersionCheck(pkgname string)

PrintVersionCheck checks for a new version of the given package and prints an update message to Stderr. Errors (no network connection etc) are ignored. If shouldcheck is false of pkgname is all or pkgname is "" nothing is done.

Types

type Config added in v0.1.9

type Config struct {
	Filter          string
	RegExp          *regexp.Regexp
	IncludeIndirect bool
}

type Update added in v0.1.9

type Update struct {
	Path       string
	OldVersion string
	NewVersion string
}

func FindUpdates added in v0.1.9

func FindUpdates(c *Config) (updates []Update, err error)

Jump to

Keyboard shortcuts

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