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
Click to show internal directories.
Click to hide internal directories.