ver

package
v0.0.0-...-ecbebe3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	// contains filtered or unexported fields
}

func ParseVersion

func ParseVersion(s string) (Version, error)

ParseVersion only support stable version string e.g. 1.18.2 1.20 1.14.2 1.4..... see more at pvn.go

func (Version) Available

func (v Version) Available() bool

func (Version) Major

func (v Version) Major() int

func (Version) Minor

func (v Version) Minor() int

func (Version) Patch

func (v Version) Patch() int

func (Version) ProtocolVersion

func (v Version) ProtocolVersion() int

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