View definition

(*Context).GetQuery

Defined in github.com/gin-gonic/gin/context.go

Description

GetQuery is like Query(), it returns the keyed url query value if it exists `(value, true)` (even when the value is an empty string), othewise it returns `("", false)`. It is shortcut for `c.Request.URL.Query().Get(key)`

GET /?name=Manu&lastname=
("Manu", true) == c.GetQuery("name")
("", false) == c.GetQuery("id")
("", true) == c.GetQuery("lastname")

GetQuery is referenced in 9 repositories

github.com/gin-gonic/gin github.com/dz0ny/champ github.com/buptmiao/eago

...