summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/rs/xid/hostid_freebsd.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-05-27 21:48:57 +0200
committerWim <wim@42.be>2018-05-27 21:48:57 +0200
commitfc6074ea9fba9684aaad1ab6d43a0ec23db8c5d3 (patch)
tree28a92899258e0f1e546fdba72ff09a4b1b759a83 /vendor/github.com/rs/xid/hostid_freebsd.go
parentab1670e2cec92d4ff1058f854198ea6c9c0750d0 (diff)
downloadmatterbridge-msglm-fc6074ea9fba9684aaad1ab6d43a0ec23db8c5d3.tar.gz
matterbridge-msglm-fc6074ea9fba9684aaad1ab6d43a0ec23db8c5d3.tar.bz2
matterbridge-msglm-fc6074ea9fba9684aaad1ab6d43a0ec23db8c5d3.zip
Add vendor github.com/rs/xid
Diffstat (limited to 'vendor/github.com/rs/xid/hostid_freebsd.go')
-rw-r--r--vendor/github.com/rs/xid/hostid_freebsd.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/rs/xid/hostid_freebsd.go b/vendor/github.com/rs/xid/hostid_freebsd.go
new file mode 100644
index 00000000..df2bd13c
--- /dev/null
+++ b/vendor/github.com/rs/xid/hostid_freebsd.go
@@ -0,0 +1,9 @@
+// +build freebsd
+
+package xid
+
+import "golang.org/x/sys/unix"
+
+func readPlatformMachineID() (string, error) {
+ return unix.Sysctl("kern.hostuuid")
+}