diff options
author | Wim <wim@42.be> | 2018-05-27 21:48:57 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-05-27 21:48:57 +0200 |
commit | fc6074ea9fba9684aaad1ab6d43a0ec23db8c5d3 (patch) | |
tree | 28a92899258e0f1e546fdba72ff09a4b1b759a83 /vendor/github.com/rs/xid/hostid_darwin.go | |
parent | ab1670e2cec92d4ff1058f854198ea6c9c0750d0 (diff) | |
download | matterbridge-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_darwin.go')
-rw-r--r-- | vendor/github.com/rs/xid/hostid_darwin.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/rs/xid/hostid_darwin.go b/vendor/github.com/rs/xid/hostid_darwin.go new file mode 100644 index 00000000..abd06840 --- /dev/null +++ b/vendor/github.com/rs/xid/hostid_darwin.go @@ -0,0 +1,9 @@ +// +build darwin + +package xid + +import "golang.org/x/sys/unix" + +func readPlatformMachineID() (string, error) { + return unix.Sysctl("kern.uuid") +} |