FindLinkProgramExtra searches for the LinkProgramExtra in the extras, returning the LinkProgramExtra if found, otherwise nil.
(a arena.Arena, extras *api.CmdExtras)
| 125 | // FindLinkProgramExtra searches for the LinkProgramExtra in the extras, |
| 126 | // returning the LinkProgramExtra if found, otherwise nil. |
| 127 | func FindLinkProgramExtra(a arena.Arena, extras *api.CmdExtras) LinkProgramExtraʳ { |
| 128 | for _, e := range extras.All() { |
| 129 | if pi, ok := e.(LinkProgramExtra); ok { |
| 130 | return MakeLinkProgramExtraʳ(a).Set(pi) |
| 131 | } |
| 132 | } |
| 133 | return NilLinkProgramExtraʳ |
| 134 | } |
| 135 | |
| 136 | // FindValidateProgramExtra searches for the ValidateProgramExtra in the extras, |
| 137 | // returning the ValidateProgramExtra if found, otherwise nil. |
no test coverage detected