semverutil

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCompatible

func IsCompatible(a, b Version) bool

IsCompatible returns true if the two versions are compatible.

Types

type Version

type Version struct {
	Major int
	Minor int
	Patch int
	Tail  string
}

Version is a semantic version number.

func Parse

func Parse(s string) (Version, error)

Parse parses a semantic version number.

func (Version) String

func (v Version) String() string

String returns the string representation of the version.

Jump to

Keyboard shortcuts

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