This is to create configuration and client interface in order to give user an overview on how the Kinesis client library works. In order not to reinvent wheel, the api is designed closely aligned with Amazon Kinesis Client Library in Java. add errors. remove @throws and use @error instead. https://jira.eng.vmware.com/browse/CNA-614 Change-Id: I78a269b328c14df37f878eccef192ff022a669cc
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()
|
|
}
|