ByName returns the value of the first Param which key matches the given name. If no matching Param is found, an empty string is returned.
(name string)
| 38 | // ByName returns the value of the first Param which key matches the given name. |
| 39 | // If no matching Param is found, an empty string is returned. |
| 40 | func (ps Params) ByName(name string) (va string) { |
| 41 | va, _ = ps.Get(name) |
| 42 | return |
| 43 | } |
| 44 | |
| 45 | type methodTree struct { |
| 46 | method string |