
ghw
is a small Golang library providing hardware inspection and discovery for Linux. There currently exists partial support for MacOSX and Windows support is planned for a future release.
Usage
You can use the functions in ghw
to determine various hardware-related information about the host computer: