open-consul/test/integration/consul-container/libs/utils/utils.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
}