mirror of
https://github.com/gofiber/fiber.git
synced 2025-02-22 21:43:54 +00:00
✏️ Fix typo for app and ctx warnings
This commit is contained in:
parent
66bdd5bac4
commit
d973864a19
2
app.go
2
app.go
@ -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
2
ctx.go
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user