version

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(s string) bool

Types

type Version

type Version struct {
	Major, Minor, Patch uint
	PreRelease          string
	Meta                string
}

func Parse

func Parse(s string) (*Version, error)

func (*Version) Clone

func (v *Version) Clone() *Version

func (*Version) Compare

func (v *Version) Compare(v2 *Version) int

func (*Version) DecodeModlike

func (v *Version) DecodeModlike(val modlike.Value) error

func (*Version) EncodeFrom

func (v *Version) EncodeFrom(raw string) error

func (*Version) EncodeModlike

func (v *Version) EncodeModlike(val modlike.Value) error

func (*Version) Equal

func (v *Version) Equal(other *Version) bool

func (*Version) Greater

func (v *Version) Greater(other *Version) bool

func (*Version) Less

func (v *Version) Less(other *Version) bool

func (*Version) String

func (v *Version) String() string

func (*Version) StringWithoutSuffix

func (v *Version) StringWithoutSuffix() string

Jump to

Keyboard shortcuts

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