kuvia2/vendor/github.com/rs/xid/hostid_linux.go
2022-01-15 00:09:03 +01:00

10 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
}