From 0fc2872731fb0b16361828a5c46daa9c66a4b4d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Werner?= Date: Tue, 5 Sep 2023 10:14:00 +0200 Subject: [PATCH] correct method signature --- fiberi18n/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fiberi18n/README.md b/fiberi18n/README.md index da4404f8..6085548a 100644 --- a/fiberi18n/README.md +++ b/fiberi18n/README.md @@ -25,11 +25,11 @@ go get -u github.com/gofiber/contrib/fiberi18n/v2 ## Signature -| Name | Signature | Description | -|--------------|--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------| -| New | `New(config ...*fiberi18n.Config) fiber.Handler` | Create a new fiberi18n middleware handler | -| Localize | `Localize(ctx *fiber.Ctx, params interface{}) (string, error)` | Localize returns a localized message. param is one of these type: messageID, *i18n.LocalizeConfig | -| MustLocalize | `MustLocalize(ctx *fiber.Ctx, params interface{}) (string, error)` | MustLocalize is similar to Localize, except it panics if an error happens. param is one of these type: messageID, *i18n.LocalizeConfig | +| Name | Signature | Description | +|--------------|----------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------| +| New | `New(config ...*fiberi18n.Config) fiber.Handler` | Create a new fiberi18n middleware handler | +| Localize | `Localize(ctx *fiber.Ctx, params interface{}) (string, error)` | Localize returns a localized message. param is one of these type: messageID, *i18n.LocalizeConfig | +| MustLocalize | `MustLocalize(ctx *fiber.Ctx, params interface{}) string` | MustLocalize is similar to Localize, except it panics if an error happens. param is one of these type: messageID, *i18n.LocalizeConfig | ## Config