semver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotASemver = errors.New("the given version does not match the semantic versioning scheme")
)

Functions

func IsValid

func IsValid(version string) bool

Types

type Version

type Version struct {
	Prerelease    string `cty:"prerelease"`
	BuildMetadata string `cty:"build_metadata"`
	Major         int    `cty:"major"`
	Minor         int    `cty:"minor"`
	Patch         int    `cty:"patch"`
}

func ParseVersion

func ParseVersion(version string) (v Version, err error)

Jump to

Keyboard shortcuts

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