hostid_linux.go 183 B

12345678910
  1. // +build linux
  2. package xid
  3. import "io/ioutil"
  4. func readPlatformMachineID() (string, error) {
  5. b, err := ioutil.ReadFile("/sys/class/dmi/id/product_uuid")
  6. return string(b), err
  7. }