version

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct{ Generation, Major, Minor int }

func Get

func Get() Version

func New

func New(gen, major, minor int) Version

func Parse

func Parse(v string) (ver Version)

func (Version) IsEqual

func (v Version) IsEqual(other Version) bool

func (Version) IsNewerThan

func (v Version) IsNewerThan(other Version) bool

func (Version) IsNewerThanMajor

func (v Version) IsNewerThanMajor(other Version) bool

func (Version) IsOlderMajorThan

func (v Version) IsOlderMajorThan(other Version) bool

func (Version) IsOlderThan

func (v Version) IsOlderThan(other Version) bool

func (Version) IsOlderThanMajor

func (v Version) IsOlderThanMajor(other Version) bool

func (Version) MarshalText

func (v Version) MarshalText() ([]byte, error)

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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