3
0
mirror of https://github.com/42wim/matterbridge.git synced 2024-12-23 03:32:37 +01:00
matterbridge/vendor/github.com/rs/xid/hostid_linux.go
2018-05-27 21:48:57 +02:00

11 lines
183 B
Go

// +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
}