From 615bdb068e6d7fa862c0cee7a8781971b18c5280 Mon Sep 17 00:00:00 2001 From: Chunji Wang Date: Wed, 27 Jul 2022 11:18:26 -0700 Subject: [PATCH] Correct a typo in a comment --- 02parameter/map/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/02parameter/map/main.go b/02parameter/map/main.go index c8bb971..d8a9b1f 100644 --- a/02parameter/map/main.go +++ b/02parameter/map/main.go @@ -5,7 +5,7 @@ import ( "net/http" ) -//post http://localhost:5000/ids[a]=123&ids[b]=789&names[first]=jimmy +//POST http://localhost:5000/name?ids[a]=123&ids[b]=789&names[first]=jimmy //response: //{ @@ -32,5 +32,5 @@ func getName(c *gin.Context) { "ids": ids, "names": names, }) - c.String(http.StatusOK, "ids: %v, names; %v", ids, names) -} \ No newline at end of file + c.String(http.StatusOK, "\nids: %v, names; %v", ids, names) +}