fix: description error (#2988)

* fix:typo

* fix: typo

* fix: wrong when wildcard follows named param

* fix: description error

* update author list

* fix:typo

* fix: description error
This commit is contained in:
jincheng9 2021-12-18 19:40:47 +08:00 committed by GitHub
parent fb5f045417
commit 92a988d761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ type Context struct {
params *Params params *Params
skippedNodes *[]skippedNode skippedNodes *[]skippedNode
// This mutex protect Keys map // This mutex protects Keys map.
mu sync.RWMutex mu sync.RWMutex
// Keys is a key/value pair exclusively for the context of each request. // Keys is a key/value pair exclusively for the context of each request.
@ -71,10 +71,10 @@ type Context struct {
// Accepted defines a list of manually accepted formats for content negotiation. // Accepted defines a list of manually accepted formats for content negotiation.
Accepted []string Accepted []string
// queryCache use url.ParseQuery cached the param query result from c.Request.URL.Query() // queryCache caches the query result from c.Request.URL.Query().
queryCache url.Values queryCache url.Values
// formCache use url.ParseQuery cached PostForm contains the parsed form data from POST, PATCH, // formCache caches c.Request.PostForm, which contains the parsed form data from POST, PATCH,
// or PUT body parameters. // or PUT body parameters.
formCache url.Values formCache url.Values