versions

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SemverRegexp = regexp.MustCompile(`([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 *git.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