Remove trailing spaces

gaby/issue3095
Juan Calderon-Perez 2024-11-13 20:56:29 -05:00 committed by GitHub
parent 5aae1c9d9a
commit d571061c33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 11 deletions

View File

@ -464,13 +464,6 @@ If there's an error, it will return the error and set HTTP status to `400 Bad Re
func (b *Bind) Must() *Bind
```
```go title="Example"
app.Get("/coffee", func(c fiber.Ctx) error {
// => HTTP - GET 301 /teapot
return c.Redirect().Status(fiber.StatusMovedPermanently).To("/teapot")
})
```
### Should
To handle binder errors manually, you can use the `Should` method.