https://github.com/codeskyblue/muuid
Machine UUID, port of github.com/mhzed/machine-uuid
https://github.com/codeskyblue/muuid
Last synced: about 2 months ago
JSON representation
Machine UUID, port of github.com/mhzed/machine-uuid
- Host: GitHub
- URL: https://github.com/codeskyblue/muuid
- Owner: codeskyblue
- License: mit
- Created: 2016-11-07T02:14:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-01T09:17:13.000Z (about 8 years ago)
- Last Synced: 2025-01-26T01:14:15.050Z (4 months ago)
- Language: Go
- Size: 50.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# muuid
[](https://godoc.org/github.com/codeskyblue/muuid)Machine UUID, port of github.com/mhzed/machine-uuid
## Install
```
go get -v github.com/codeskyblue/muuid
```## Usage
```go
package mainimport "github.com/codeskyblue/muuid"
func main(){
println(muuid.UUID()) // same as muuid.UUIDFromOS(runtime.GOOS)// Generate UUID and put to ~/.muid
// Not read from /var/lib/dbus/machine-id, for RPi image matchine-id are all the same.
println(muuid.UUIDFromOS("raspberry"))
}
```## LICENSE
[MIT](LICENSE)