ghw is a Go library providing hardware inspection and discovery for Linux and Windows. There currently exists partial support for MacOSX. ghw goes the extra mile to be useful without root privileges.