✏️ Fix typo for app and ctx warnings

pull/638/head
Hemanth Krishna 2020-07-18 19:52:09 +05:30
parent 8a7cefe0b8
commit f695e21b1e
2 changed files with 2 additions and 2 deletions

2
app.go
View File

@ -594,7 +594,7 @@ func (app *App) init() *App {
if app.Settings != nil {
// Templates is replaced by Views with layout support
if app.Settings.Templates != nil {
fmt.Println("`Templates` are deprecated since v1.12.x, please us `Views` instead")
fmt.Println("`Templates` are deprecated since v1.12.x, please use `Views` instead")
}
// Only load templates if an view engine is specified
if app.Settings.Views != nil {

2
ctx.go
View File

@ -261,7 +261,7 @@ func (ctx *Ctx) BodyParser(out interface{}) error {
// query params
if ctx.Fasthttp.QueryArgs().Len() > 0 {
schemaDecoder.SetAliasTag("query")
fmt.Println("Parsing query strings using `BodyParser` is deprecated since v1.12.7, please us `ctx.QueryParser` instead")
fmt.Println("Parsing query strings using `BodyParser` is deprecated since v1.12.7, please use `ctx.QueryParser` instead")
data := make(map[string][]string)
ctx.Fasthttp.QueryArgs().VisitAll(func(key []byte, val []byte) {
data[getString(key)] = append(data[getString(key)], getString(val))