1
0
Fork 0
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:
Sascha L. Teichmann 2022-06-24 11:07:05 +02:00
commit e25fe66ee8
35 changed files with 1366 additions and 312 deletions

View file

@ -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 {