summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-09-04 15:15:27 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-09-04 15:15:27 +0530
commit6a36dc6fed115ea1a2364adba53f56482caf6c48 (patch)
tree33ebf27038b3613cd7eeb6dcd5230e4708f8e0f9
parent0ac23cf0dd872d6d674f6fbc894d3bf3c61697bd (diff)
Removing Comments
-rw-r--r--main.go6
1 files changed, 0 insertions, 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{