mirror of
https://github.com/kataras/iris.git
synced 2025-03-13 21:36:28 +01:00
fmt
Signed-off-by: Gerasimos (Makis) Maropoulos <kataras2006@hotmail.com> Former-commit-id: b30be0c10c507296cdf0a5a14bc8586af77ef604
This commit is contained in:
parent
67e47215cd
commit
68fda360db
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user