1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

update go.mod deps

Former-commit-id: 91a0ab6a8cb35bf9143cee0447a6f72ca8a09333
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-05-04 20:23:15 +03:00
parent 20fcfb4110
commit f5e59c10e1
4 changed files with 11 additions and 14 deletions

View File

@@ -23,7 +23,9 @@ func newApp() *iris.Application {
// Set to false to disallow path (local) redirects,
// see https://github.com/kataras/iris/issues/1369.
// app.I18n.PathRedirect = true
// See app.I18n.ExtractFunc to change the way a language is extracted from a request.
//
// See `app.I18n.ExtractFunc = func(ctx iris.Context) string` or
// `ctx.SetLanguage(langCode string)` to change the extracted language from a request.
app.Get("/", func(ctx iris.Context) {
hi := ctx.Tr("hi", "iris")