versions

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SemverRegexp = regexp.MustCompile(`v?([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?`)

Functions

func FindPreviousVersionFromFile

func FindPreviousVersionFromFile(filename string) (semver.Version, string, error)

func FindPreviousVersionFromTag

func FindPreviousVersionFromTag(r *repo.Repository) (version semver.Version, foundTag string, errReturn error)

Types

type Version

type Version struct {
	semver.Version
	// Tag is (optionally) the tag uses for this version
	Tag string
}

Version represents the semantic version number

Jump to

Keyboard shortcuts

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