init monlet repo with stage 0-2 (docs, contract, agent MVP)
This commit is contained in:
12
agent/internal/eventid/eventid.go
Normal file
12
agent/internal/eventid/eventid.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package eventid
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
// New returns a UUIDv7 in canonical lower-case form.
|
||||
func New() (string, error) {
|
||||
id, err := uuid.NewV7()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return id.String(), nil
|
||||
}
|
||||
Reference in New Issue
Block a user