mirror of https://github.com/hashicorp/consul
14 lines
199 B
Go
14 lines
199 B
Go
|
package utils
|
||
|
|
||
|
import (
|
||
|
"github.com/hashicorp/go-uuid"
|
||
|
)
|
||
|
|
||
|
func RandName(name string) string {
|
||
|
generateUUID, err := uuid.GenerateUUID()
|
||
|
if err != nil {
|
||
|
return ""
|
||
|
}
|
||
|
return name + generateUUID
|
||
|
}
|