version_util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VersionCompare

func VersionCompare(a *Version, b *Version) int

a>b return 1 , a==b return 0 , a<b return -1

Types

type Version

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

func NewVersion

func NewVersion(head int64, middle int64, tail int64) *Version

func StrToVersion

func StrToVersion(vstr string) (*Version, error)

func (*Version) ToString

func (v *Version) ToString() string

Jump to

Keyboard shortcuts

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