From 68fda360db8a0f0eb5f34c396786acce72143602 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Mon, 4 May 2020 08:20:55 +0300 Subject: [PATCH] fmt Signed-off-by: Gerasimos (Makis) Maropoulos Former-commit-id: b30be0c10c507296cdf0a5a14bc8586af77ef604 --- _examples/i18n/main.go | 5 ++++- middleware/rate/rate.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/_examples/i18n/main.go b/_examples/i18n/main.go index fbc1fd8c..438e5acb 100644 --- a/_examples/i18n/main.go +++ b/_examples/i18n/main.go @@ -10,7 +10,10 @@ func newApp() *iris.Application { // Configure i18n. // First parameter: Glob filpath patern, // Second variadic parameter: Optional language tags, the first one is the default/fallback one. - app.I18n.Load("./locales/*/*.ini", "en-US", "el-GR", "zh-CN") + err := app.I18n.Load("./locales/*/*.ini", "en-US", "el-GR", "zh-CN") + if err != nil { + panic(err) + } // app.I18n.LoadAssets for go-bindata. // Default values: diff --git a/middleware/rate/rate.go b/middleware/rate/rate.go index 60a1a975..d482a6ba 100644 --- a/middleware/rate/rate.go +++ b/middleware/rate/rate.go @@ -16,7 +16,7 @@ func init() { context.SetHandlerName("iris/middleware/rate.(*Limiter).serveHTTP-fm", "iris.ratelimit") } -// Option delcares a function which can be passed on `Limit` package-level +// Option declares a function which can be passed on `Limit` package-level // to modify its internal fields. Available Options are: // * ExceedHandler // * ClientData