ghw is a small Golang library providing hardware inspection and discovery for Linux and Windows. There currently exists partial support for MacOSX. ghw is a tool for gathering information about your hardware’s capacity and capabilities.
Usage
You can use the functions in ghw
to determine various hardware-related information about the host computer: