diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-09-04 15:15:27 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-09-04 15:15:27 +0530 |
commit | 6a36dc6fed115ea1a2364adba53f56482caf6c48 (patch) | |
tree | 33ebf27038b3613cd7eeb6dcd5230e4708f8e0f9 | |
parent | 0ac23cf0dd872d6d674f6fbc894d3bf3c61697bd (diff) |
Removing Comments
-rw-r--r-- | main.go | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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{ |