mirror of https://github.com/status-im/consul.git
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
|
||
|
}
|