From e3a771652146e7357a4d2a84bd7e2306ea64317a Mon Sep 17 00:00:00 2001 From: Samuel Gyger Date: Mon, 1 Jul 2019 01:52:29 +0200 Subject: [PATCH] go.uuid broke API in the solution to go.uuid/#18. This updates to the new API. Fixe afterwards --- webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webhook.go b/webhook.go index 5d41077..a48851f 100644 --- a/webhook.go +++ b/webhook.go @@ -202,7 +202,7 @@ func main() { func hookHandler(w http.ResponseWriter, r *http.Request) { // generate a request id for logging - rid := uuid.NewV4().String()[:6] + rid := uuid.Must(uuid.NewV4()).String()[:6] log.Printf("[%s] incoming HTTP request from %s\n", rid, r.RemoteAddr)