From 66edde449995df58296c944f969d9e81f6b8e7e8 Mon Sep 17 00:00:00 2001 From: RW Date: Mon, 14 Feb 2022 08:19:19 +0100 Subject: [PATCH] remove errors method #1768 https://github.com/gofiber/fiber/pull/1768 --- api/fiber.md | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/api/fiber.md b/api/fiber.md index 8856cced771..65be5d8ec0f 100644 --- a/api/fiber.md +++ b/api/fiber.md @@ -96,23 +96,6 @@ app.Get("/", func(c *fiber.Ctx) error { }) ``` {% endcode %} -## NewErrors - -NewErrors creates HTTPError instances with multiple error messages. - -{% code title="Signature" %} -```go -func NewErrors(code int, messages ...interface{}) *Error -``` -{% endcode %} - -{% code title="Example" %} -```go -app.Get("/", func(c *fiber.Ctx) error { - return fiber.NewErrors(fiber.StatusServiceUnavailable, "error1", "error2") -}) -``` -{% endcode %} ## IsChild