Select returns a list of functions containing the function with the given name
(name string)
| 91 | |
| 92 | // Select returns a list of functions containing the function with the given name |
| 93 | func (f Functions) Select(name string) Functions { |
| 94 | var funcs Functions |
| 95 | |
| 96 | for _, f := range f { |
| 97 | if f.Name == name { |
| 98 | funcs = []Function{f} |
| 99 | break |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | return funcs |
| 104 | } |
no outgoing calls
no test coverage detected