Go HardWare discovery/inspection library
!! Breaking change !!
In the past we've left poorly-named fields (like Id
instead of ID
) in the structs in case people were using the old names and then removed them after a deprecation period. However, in this release, the old ProcessorCore.Index
field really was confusing and wrong: it stated that it was the zero-based index of the core on the physical processor package, but that was incorrect. In actuality, ProcessorCore.Index
was one of the zero-based indexes of a logical processor associated with the physical core
Because of this, we have removed the ProcessorCore.Index
field entirely. If you were using the ProcessorCore.Index
field in your code, you should change to use the (correct) ProcessorCore.ID
field to refer to the processor core.
Thank you to all who contributed to this release of ghw
!
Partition.Label
(#316 @Itxaka)blkid
usage (#320 @Itxaka)ghw.PCIAddress.String()
helper (#223, thanks @fromanirh)ghw.pci.LookupDevice
(#240 thanks @fromanirh)ghwc
(#209)ghw.WithDisableWarnings()
helper (#216, thanks @fromanirh)total_physical_bytes
and total_usable_bytes
. Added documentation (#188) to clearly explain the difference between total_usable_bytes
and the transient "available memory amount" (which ghw
does not look at)<nil>
types being returned from WMI/WQL queries for non-pointer receiver types (#189)ghw.Disk.IsRemovable
(@thetravischannel): Added new boolean attribute to ghw.Disk
struct to represent if the disk drive is removable.ghw-snapshot
command (currently Linux-only) that builds a static filesystem snapshot into a tarball and a script (hack/run-against-snapshot.sh
) that will mount the snapshot in a Docker container and run ghwc
against it for testing/diagnostic purposes