Categorygithub.com/codeskyblue/muuid
repositorypackage
0.0.0-20170401091614-44f8dfd4b3a9
Repository: https://github.com/codeskyblue/muuid.git
Documentation: pkg.go.dev

# README

muuid

GoDoc

Machine UUID, port of github.com/mhzed/machine-uuid

Install

go get -v github.com/codeskyblue/muuid

Usage

package main

import "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