ref: return prev validation comment

pull/3369/head
mazyaryousefinia 2025-03-24 21:59:58 +03:30
parent 0e2eae618b
commit ca9519ae2f
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ app.Post("/", func(c fiber.Ctx) error {
user := new(User)
// Works with all bind methods - Body, Query, Form, ...
if err := c.Bind().Body(user); err != nil {
if err := c.Bind().Body(user); err != nil { // <- here you receive the validation errors
return err
}