versiondiff

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VersionDiff

type VersionDiff struct {
	From *version.Version
	To   *version.Version
}

VersionDiff represents the difference between two versions

func (*VersionDiff) Direction

func (v *VersionDiff) Direction() string

Direction gets the direction of the version diff as a string

func (*VersionDiff) HasMajorChange

func (v *VersionDiff) HasMajorChange() bool

HasMajorChange checks if the from version is different from the to version

func (*VersionDiff) HasMinorChange

func (v *VersionDiff) HasMinorChange() bool

HasMinorChange checks if the from version is different from the to version

func (*VersionDiff) HasPatchChange

func (v *VersionDiff) HasPatchChange() bool

HasPatchChange checks if the from version is different from the to version

func (*VersionDiff) IsDowngrade

func (v *VersionDiff) IsDowngrade() bool

IsDowngrade checks if the from version is greater than the to version

func (*VersionDiff) IsSameVersion

func (v *VersionDiff) IsSameVersion() bool

IsSameVersion checks if the from and to versions are the same

func (*VersionDiff) IsUpgrade

func (v *VersionDiff) IsUpgrade() bool

IsUpgrade checks if the from version is less than the to version

Jump to

Keyboard shortcuts

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