Skip to content

Commit

Permalink
Implement FindParamById for catalog's control
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Sep 25, 2020
1 parent b93b9d9 commit 04f076a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions types/oscal/catalog/control.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package catalog

func (c *Control) FindParamById(id string) *Param {
for i, param := range c.Parameters {
if param.Id == id {
return &c.Parameters[i]
}
}
return nil
}

0 comments on commit 04f076a

Please sign in to comment.