From 35c8f99bb46403f6ca63e032bc8f641c32a6c9a9 Mon Sep 17 00:00:00 2001 From: Mohammed Salah Date: Tue, 30 Nov 2021 18:16:15 +0200 Subject: [PATCH] Update context.go --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 30a86982..9a15626f 100644 --- a/context.go +++ b/context.go @@ -415,7 +415,7 @@ func (c *Context) Query(key string) (value string) { // c.DefaultQuery("name", "unknown") == "Manu" // c.DefaultQuery("id", "none") == "none" // c.DefaultQuery("lastname", "none") == "" -func (c *Context) DefaultQuery(key, defaultValue string) string { +func (c *Context) DefaultQuery(key, defaultValue interface{}) interface{} { if value, ok := c.GetQuery(key); ok { return value }