Add output for package causing vulnerability

Include the name of package that caused the vulnerability in the
output.
This commit is contained in:
Matthias Nüßler 2016-02-18 15:03:28 +01:00
parent 1866821a80
commit 2300ae9ad7

View File

@ -42,7 +42,7 @@ type APIVulnerabilitiesResponse struct {
}
type APIVulnerability struct {
ID, Link, Priority, Description string
ID, Link, Priority, Description, CausedByPackage string
}
func main() {
@ -130,6 +130,7 @@ func main() {
fmt.Printf("- # %s\n", vulnerability.ID)
fmt.Printf(" - Priority: %s\n", vulnerability.Priority)
fmt.Printf(" - Link: %s\n", vulnerability.Link)
fmt.Printf(" - Package: %s\n", vulnerability.CausedByPackage)
fmt.Printf(" - Description: %s\n", vulnerability.Description)
}
}