15 lines
181 B
Go
15 lines
181 B
Go
|
package uuid
|
||
|
|
||
|
import guuid "github.com/satori/go.uuid"
|
||
|
|
||
|
var uuid string
|
||
|
|
||
|
func init() {
|
||
|
uuid = guuid.NewV4().String()
|
||
|
}
|
||
|
|
||
|
// Get the instance UUID
|
||
|
func Get() string {
|
||
|
return uuid
|
||
|
}
|