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
检测系统主版本号 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.
Click to show internal directories.
Click to hide internal directories.