Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegexCVE = regexp.MustCompile(`^CVE-\d{4}-\d{4,}$`) RegexGHSA = regexp.MustCompile(`^GHSA(-[23456789cfghjmpqrvwx]{4}){3}$`) RegexGO = regexp.MustCompile(`^GO-\d{4}-\d{4}$`) )
Functions ¶
func ValidateCPE ¶
ValidateCPE returns an error if the CPE is invalid.
func ValidateID ¶
ValidateID returns an error if the given ID is not a valid CVE ID, CGA ID, GHSA ID, or Go vulnerability ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.