FindBySignature returns the field with the matching signature in l, or nil if no field with a matching signature is found in l.
(name, sig string)
| 52 | // FindBySignature returns the field with the matching signature in l, or nil |
| 53 | // if no field with a matching signature is found in l. |
| 54 | func (l Fields) FindBySignature(name, sig string) *Field { |
| 55 | for _, f := range l { |
| 56 | if f.Name == name && f.Signature == sig { |
| 57 | return &f |
| 58 | } |
| 59 | } |
| 60 | return nil |
| 61 | } |
| 62 | |
| 63 | // FindByID returns the field with the matching identifier in l, or nil if no |
| 64 | // field with a matching identifier is found in l. |
no outgoing calls