version

package
v0.8.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal added in v0.0.16

func Equal(v1 string, v2 string) bool

func EqualMinor added in v0.2.0

func EqualMinor(v1 string, v2 string) bool

func Greater added in v0.0.16

func Greater(v1 string, v2 string) bool

Types

type Version

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

func MustVersion

func MustVersion(s string) *Version

func NewVersion

func NewVersion(s string) (version *Version, err error)

func (*Version) Equal added in v0.0.16

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

func (*Version) EqualMinor added in v0.2.0

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

func (*Version) Greater

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

Jump to

Keyboard shortcuts

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