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
14 lines
227 B
Go
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()
|
|
}
|