File: hostid_freebsd.go

package info (click to toggle)
golang-github-rs-xid 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 152 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 139 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
// +build freebsd

package xid

import "syscall"

func readPlatformMachineID() (string, error) {
	return syscall.Sysctl("kern.hostuuid")
}