(name string)
| 234 | type ParameterDefinitions []ParameterDefinition |
| 235 | |
| 236 | func (p ParameterDefinitions) FindByName(name string) *ParameterDefinition { |
| 237 | for _, param := range p { |
| 238 | if param.ParamName == name { |
| 239 | return ¶m |
| 240 | } |
| 241 | } |
| 242 | return nil |
| 243 | } |
| 244 | |
| 245 | // DescribeParameters walks the given parameters dictionary, and generates the above |
| 246 | // descriptors into a flat list. This makes it a lot easier to traverse the |