upstream

package
v0.0.0-...-a634bc8 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GnuUpstreamLatest

func GnuUpstreamLatest(name, url string, current semver.Version) (string, error)

GnuUpstreamLatest returns the latest version found from upstream mirror. This is still highly experimental If the version returned is "0.0.0" then no new versions were found.

func ParseName

func ParseName(in string) string

ParseName parses a string and returns the name before the last hyphen. passing "bash-5.0" would return "bash"

func ParseNameVersion

func ParseNameVersion(file string) (string, string)

ParseNameVersion returns the name and version from a string the string passed is usually in the GNU form of "name-1.0.0"

func ParseVersion

func ParseVersion(in string) string

ParseVersion returns the parsed version from a string. passing "bash-5.0" should return "5.0"

Types

This section is empty.

Jump to

Keyboard shortcuts

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