From f22ba6725c66896efdef029aaeb3bfc471f171c3 Mon Sep 17 00:00:00 2001 From: ivansmaliakou Date: Wed, 15 Mar 2023 22:50:00 +0100 Subject: [PATCH] documentation: changed description for `Bind()` method of `Context interface`. Because `Bind()`` binds not only request body, but also path and query params --- context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/context.go b/context.go index b3a7ce8d..27da28a9 100644 --- a/context.go +++ b/context.go @@ -100,8 +100,8 @@ type ( // Set saves data in the context. Set(key string, val interface{}) - // Bind binds the request body into provided type `i`. The default binder - // does it based on Content-Type header. + // Bind binds path params, query params and the request body into provided type `i`. The default binder + // binds body based on Content-Type header. Bind(i interface{}) error // Validate validates provided `i`. It is usually called after `Context#Bind()`.