mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
11 lines
183 B
Go
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
|
||
|
}
|