version

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VersionInit

func VersionInit()

Types

type TArchitecture

type TArchitecture uint32
const (
	ArIntelX86 TArchitecture = iota + 0
	ArIntelX64
	ArARM32
	ArARM64
)

type TOSVersion

type TOSVersion struct {
	Name             string
	Build            int
	Major            int
	Minor            int
	ServicePackMajor int
	ServicePackMinor int
	Architecture     TArchitecture
	Platform         TPlatform

	// linux: PrettyName, LibCVersionMajor, LibCVersionMinor
	PrettyName       string
	LibCVersionMajor int
	LibCVersionMinor int
	// contains filtered or unexported fields
}
var OSVersion TOSVersion

func (*TOSVersion) CheckMajor

func (v *TOSVersion) CheckMajor(AMajor int) bool

CheckMajor

检测系统主版本号
Detection system major version number.

func (*TOSVersion) CheckMajorMinor

func (v *TOSVersion) CheckMajorMinor(AMajor, AMinor int) bool

CheckMajorMinor

检测系统主版本和子版本号
Detect system major and sub-version numbers.

func (*TOSVersion) CheckMajorMinorServicePackMajor

func (v *TOSVersion) CheckMajorMinorServicePackMajor(AMajor, AMinor, AServicePackMajor int) bool

func (*TOSVersion) ToString

func (v *TOSVersion) ToString() string

ToString

格式化的版本信息
Formatted version information.

type TPlatform

type TPlatform uint32
const (
	PfWindows TPlatform = iota + 0
	PfMacOS
	PfiOS
	PfAndroid
	PfWinRT
	PfLinux
)

Jump to

Keyboard shortcuts

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