From faa284b0a01dca92bb31a105d4dede4f25916108 Mon Sep 17 00:00:00 2001 From: Noah Santschi-Cooney Date: Fri, 27 Oct 2017 14:31:14 +0100 Subject: [PATCH] Initialize map on declaration Looks more idiomatic and nicer in my opinion --- helpers/inbound/inbound.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/helpers/inbound/inbound.go b/helpers/inbound/inbound.go index d6a54d4e..863f1d86 100644 --- a/helpers/inbound/inbound.go +++ b/helpers/inbound/inbound.go @@ -178,9 +178,10 @@ func main() { if err != nil { log.Fatal("Check your Filepath. ", err) } - Headers := make(map[string]string) - Headers["User-Agent"] = "SendGrid-Test" - Headers["Content-Type"] = "multipart/form-data; boundary=xYzZY" + Headers := map[string]string{ + "User-Agent": "SendGrid-Test", + "Content-Type": "multipart/form-data; boundary=xYzZY", + } method := rest.Post request := rest.Request{ Method: method,