vmware-go-kcl-v2/clientlibrary/utils/uuid.go
Long Zhou 2b9301cd47 Flatten directory structure
cascade-kinesis-client will be used as a submodule of other projects,
so it should not have "src/vmware.com/cascade-kinesis-client" in
its path. To build this project locally, please manually create
the parent folders.

Change-Id: I8844e6a0e32aae65b28496915d8507e9fb1058c6
2021-12-20 21:15:15 -06:00

14 lines
227 B
Go

package utils
import (
guuid "github.com/google/uuid"
)
// MustNewUUID generates a new UUID and panics if failed
func MustNewUUID() string {
id, err := guuid.NewUUID()
if err != nil {
panic(err)
}
return id.String()
}