updated comments for Get function for params (#2756)
This commit is contained in:
parent
61a0cda75a
commit
a8857ed70a
4
tree.go
4
tree.go
@ -30,8 +30,8 @@ type Param struct {
|
||||
// It is therefore safe to read values by the index.
|
||||
type Params []Param
|
||||
|
||||
// Get returns the value of the first Param which key matches the given name.
|
||||
// If no matching Param is found, an empty string is returned.
|
||||
// Get returns the value of the first Param which key matches the given name and a boolean true.
|
||||
// If no matching Param is found, an empty string is returned and a boolean false .
|
||||
func (ps Params) Get(name string) (string, bool) {
|
||||
for _, entry := range ps {
|
||||
if entry.Key == name {
|
||||
|
Loading…
Reference in New Issue
Block a user