Skip to content

Commit

Permalink
Update docstring for FormValue() (#2262)
Browse files Browse the repository at this point in the history
Include the other places that are searched for the provided form value key
  • Loading branch information
AngelVI13 committed Dec 5, 2022
1 parent d9d2153 commit 356448c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ctx.go
Expand Up @@ -553,6 +553,7 @@ func (c *Ctx) FormFile(key string) (*multipart.FileHeader, error) {
}

// FormValue returns the first value by key from a MultipartForm.
// Search is performed in QueryArgs, PostArgs, MultipartForm and FormFile in this particular order.
// Defaults to the empty string "" if the form value doesn't exist.
// If a default value is given, it will return that value if the form value does not exist.
// Returned value is only valid within the handler. Do not store any references.
Expand Down

0 comments on commit 356448c

Please sign in to comment.