version

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: Apache-2.0 Imports: 9 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 检测系统主版本号

func (*TOSVersion) CheckMajorMinor

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

CheckMajorMinor 检测系统主版本和子版本号

func (*TOSVersion) CheckMajorMinorServicePackMajor

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

func (*TOSVersion) ToString

func (v *TOSVersion) ToString() string

ToString 版本信息

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