matterbridge/vendor/github.com/rs/xid/hostid_linux.go

11 lines
183 B
Go
Raw Permalink Normal View History

2018-05-27 12:48:57 -07:00
// +build linux
package xid
import "io/ioutil"
func readPlatformMachineID() (string, error) {
b, err := ioutil.ReadFile("/sys/class/dmi/id/product_uuid")
return string(b), err
}