From 6a36dc6fed115ea1a2364adba53f56482caf6c48 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Mon, 4 Sep 2023 15:15:27 +0530 Subject: Removing Comments --- main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.go b/main.go index 385d8cc..34df0fa 100644 --- a/main.go +++ b/main.go @@ -18,16 +18,12 @@ func main() { e.Logger.Fatal(e.Start(":3000")) } -//http://localhost:3000/hello -//{"message":"Hello World"} func Greetings(c echo.Context) error { return c.JSON(http.StatusOK, HelloWorld{ Message: "Hello World", }) } -//http://localhost:3000/hello/Saumit -//{"message":"Hello World, my name is Saumit"} func GreetingsWithParams(c echo.Context) error { params := c.Param("name") return c.JSON(http.StatusOK, HelloWorld{ @@ -35,8 +31,6 @@ func GreetingsWithParams(c echo.Context) error { }) } -//http://localhost:3000/hello-queries?name=Saumit -//{"message":"Hello World, I'm using queries and my name is Saumit"} func GreetingsWithQuery(c echo.Context) error { query := c.QueryParam("name") return c.JSON(http.StatusOK, HelloWorld{ -- cgit v1.2.3