mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Merge branch 'main' into rolie-categories
This commit is contained in:
commit
e25fe66ee8
35 changed files with 1366 additions and 312 deletions
|
|
@ -132,19 +132,6 @@ func (rf *ROLIEFeed) EntryByID(id string) *Entry {
|
|||
return nil
|
||||
}
|
||||
|
||||
// Files extracts the files from the feed.
|
||||
func (rf *ROLIEFeed) Files(filter string) []string {
|
||||
var files []string
|
||||
for _, f := range rf.Feed.Entry {
|
||||
for i := range f.Link {
|
||||
if link := &f.Link[i]; link.Rel == filter {
|
||||
files = append(files, link.HRef)
|
||||
}
|
||||
}
|
||||
}
|
||||
return files
|
||||
}
|
||||
|
||||
// Entries visits the entries of this feed.
|
||||
func (rf *ROLIEFeed) Entries(fn func(*Entry)) {
|
||||
for _, e := range rf.Feed.Entry {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue