Move sync deps, change uuid to google and update go.mod

This commit is contained in:
Asim Aslam
2019-06-07 13:53:42 +01:00
parent 9e23855c37
commit a2fbf19341
14 changed files with 9 additions and 765 deletions

View File

@@ -31,7 +31,7 @@ import (
"time"
"unicode"
"github.com/pborman/uuid"
"github.com/google/uuid"
"gopkg.in/go-playground/validator.v9"
)
@@ -66,7 +66,7 @@ func New(eventType string, mimeType string, payload interface{}) *Event {
EventType: eventType,
CloudEventsVersion: CloudEventsVersion,
Source: "https://micro.mu",
EventID: uuid.NewUUID().String(),
EventID: uuid.New().String(),
EventTime: &now,
ContentType: mimeType,
Data: payload,