ezVersion

package
v0.0.0-...-77ac295 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IsEq int = iota
	IsNewer
	IsOlder
)

Variables

This section is empty.

Functions

func Build

func Build(v string) int64

Types

type Version

type Version struct {
	//主版本号
	Version string `json:"version"`

	//内部版本号
	Build int `json:"build"`

	//版本标识码
	Feature uint8 `json:"feature"`
}

func NewVersion

func NewVersion(v string, b int, c uint8) *Version

func (*Version) BuildVersion

func (v *Version) BuildVersion() string

func (*Version) CompatAll

func (v *Version) CompatAll(b string) (result int)

func (*Version) CompatMain

func (v *Version) CompatMain(b string) (result int)

func (*Version) FeatureVersion

func (v *Version) FeatureVersion() uint8

func (*Version) Full

func (v *Version) Full() string

func (*Version) MainVersion

func (v *Version) MainVersion() string

Jump to

Keyboard shortcuts

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