muuid

package module
v0.0.0-...-44f8dfd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2017 License: MIT Imports: 10 Imported by: 3

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUuidNotFound = errors.New("uuid not found")
)

Functions

func RemoveTempUidFile

func RemoveTempUidFile() error

func UUID

func UUID() string

func UUIDFromOS

func UUIDFromOS(osName string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL