Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miladrahimi authored Mar 4, 2022
1 parent 09ef0f7 commit b7e7ff9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ func main() {
})

r.GET("/json", func(c router.Context) error {
return c.JSON(200, response.M{"message": "A JSON response using response.M helper"})
return c.JSON(200, response.M{"message": "Using response.M helper"})
})

r.GET("/json-pretty", func(c router.Context) error {
return c.PrettyJSON(200, response.M{"message": "A pretty JSON response"})
return c.PrettyJSON(200, response.M{"message": "A pretty JSON response!"})
})

r.GET("/xml", func(c router.Context) error {
Expand All @@ -180,7 +180,7 @@ func main() {
})

r.GET("/bytes", func(c router.Context) error {
return c.Bytes(200, []bytes("This was some bytes!"))
return c.Bytes(200, []bytes("Some bytes!"))
})

r.GET("/custom", func(c router.Context) error {
Expand Down

0 comments on commit b7e7ff9

Please sign in to comment.