Skip to content

Commit

Permalink
Add ExtractJobIDS
Browse files Browse the repository at this point in the history
Adds the often used ExtractJobIDS function
  • Loading branch information
grisu48 committed Mar 30, 2023
1 parent 04c9dac commit 8b635c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gopenqa.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ func (p *product2) encodeParams() string {
return params.Encode()
}

func ExtractJobIDS(jobs []Job) []int64 {
ret := make([]int64, 0)
for _, job := range jobs {
ret = append(ret, job.ID)
}
return ret
}

func EmptyParams() map[string]string {
return make(map[string]string, 0)
}
Expand Down

0 comments on commit 8b635c3

Please sign in to comment.