From 2978c5493bee8fc87df3b7f9b0128de1db346a91 Mon Sep 17 00:00:00 2001 From: Jon Perada Date: Tue, 27 Jun 2023 15:13:36 +0800 Subject: [PATCH] Update binding.md Change `ids` to `id` to be consistent with the example API route, which uses `id`. The response returns `null` `IDs` when using the current example, which is expected to work on the go. --- website/content/guide/binding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/content/guide/binding.md b/website/content/guide/binding.md index 968f278c..a8608ca7 100644 --- a/website/content/guide/binding.md +++ b/website/content/guide/binding.md @@ -193,7 +193,7 @@ length := int64(50) // default length is 50 // creates query params binder that stops binding at first error err := echo.QueryParamsBinder(c). Int64("length", &length). - Int64s("ids", &opts.IDs). + Int64s("id", &opts.IDs). Bool("active", &opts.Active). BindError() // returns first binding error ```