Versions in this module Expand all Collapse all v2 v2.0.14 Apr 10, 2022 v2.0.13 Apr 10, 2022 Changes in this version + func Detect() + func DetectARM() + func Flags() + type CPUInfo struct + BoostFreq int64 + BrandName string + Cache struct{ ... } + CacheLine int + Family int + Hz int64 + LogicalCores int + Model int + PhysicalCores int + SGX SGXSupport + ThreadsPerCore int + VendorID Vendor + VendorString string + var CPU CPUInfo + func (c *CPUInfo) Disable(ids ...FeatureID) bool + func (c *CPUInfo) Enable(ids ...FeatureID) bool + func (c CPUInfo) FeatureSet() []string + func (c CPUInfo) Has(id FeatureID) bool + func (c CPUInfo) Ia32TscAux() uint32 + func (c CPUInfo) IsVendor(v Vendor) bool + func (c CPUInfo) LogicalCPU() int + func (c CPUInfo) RTCounter() uint64 + func (c CPUInfo) Supports(ids ...FeatureID) bool + func (c CPUInfo) VM() bool + func (c CPUInfo) X64Level() int + type FeatureID int + const ADX + const AESARM + const AESNI + const AMD3DNOW + const AMD3DNOWEXT + const AMXBF16 + const AMXINT8 + const AMXTILE + const ARMCPUID + const ASIMD + const ASIMDDP + const ASIMDHP + const ASIMDRDM + const ATOMICS + const AVX + const AVX2 + const AVX512BF16 + const AVX512BITALG + const AVX512BW + const AVX512CD + const AVX512DQ + const AVX512ER + const AVX512F + const AVX512FP16 + const AVX512IFMA + const AVX512PF + const AVX512VBMI + const AVX512VBMI2 + const AVX512VL + const AVX512VNNI + const AVX512VP2INTERSECT + const AVX512VPOPCNTDQ + const AVXSLOW + const BMI1 + const BMI2 + const CETIBT + const CETSS + const CLDEMOTE + const CLMUL + const CLZERO + const CMOV + const CMPXCHG8 + const CPBOOST + const CRC32 + const CX16 + const DCPOP + const ENQCMD + const ERMS + const EVTSTRM + const F16C + const FCMA + const FMA3 + const FMA4 + const FP + const FPHP + const FXSR + const FXSROPT + const GFNI + const GPA + const HLE + const HTT + const HWA + const HYPERVISOR + const IBPB + const IBS + const IBSBRNTRGT + const IBSFETCHSAM + const IBSFFV + const IBSOPCNT + const IBSOPCNTEXT + const IBSOPSAM + const IBSRDWROPCNT + const IBSRIPINVALIDCHK + const INT_WBINVD + const INVLPGB + const JSCVT + const LAHF + const LRCPC + const LZCNT + const MCAOVERFLOW + const MCOMMIT + const MMX + const MMXEXT + const MOVBE + const MOVDIR64B + const MOVDIRI + const MPX + const MSRIRC + const NX + const OSXSAVE + const PMULL + const POPCNT + const RDPRU + const RDRAND + const RDSEED + const RDTSCP + const RTM + const RTM_ALWAYS_ABORT + const SCE + const SERIALIZE + const SGX + const SGXLC + const SHA + const SHA1 + const SHA2 + const SHA3 + const SHA512 + const SM3 + const SM4 + const SSE + const SSE2 + const SSE3 + const SSE4 + const SSE42 + const SSE4A + const SSSE3 + const STIBP + const SUCCOR + const SVE + const TBM + const TSXLDTRK + const UNKNOWN + const VAES + const VMX + const VPCLMULQDQ + const WAITPKG + const WBNOINVD + const X87 + const XOP + const XSAVE + func ParseFeature(s string) FeatureID + func (i FeatureID) String() string + type SGXEPCSection struct + BaseAddress uint64 + EPCSize uint64 + type SGXSupport struct + Available bool + EPCSections []SGXEPCSection + LaunchControl bool + MaxEnclaveSize64 int64 + MaxEnclaveSizeNot64 int64 + SGX1Supported bool + SGX2Supported bool + type Vendor int + const AMCC + const AMD + const ARM + const Ampere + const Bhyve + const Broadcom + const Cavium + const DEC + const Fujitsu + const Hygon + const Infineon + const Intel + const KVM + const MSVM + const Marvell + const Motorola + const NSC + const NVIDIA + const Qualcomm + const RDC + const SiS + const Transmeta + const VIA + const VMware + const VendorUnknown + const XenHVM + func (i Vendor) String() string Other modules containing this package github.com/arthurnavah/cpuid