Versions in this module Expand all Collapse all v1 v1.0.0 Mar 1, 2024 Changes in this version + const Any + func ValidateString(cpeStr string) error + type Attributes struct + Edition string + Language string + Other string + Part string + Product string + SWEdition string + TargetHW string + TargetSW string + Update string + Vendor string + Version string + func MustAttributes(cpeStr string) Attributes + func NewAttributes(cpeStr string) (Attributes, error) + func NewWithAny() Attributes + func (c Attributes) BindToFmtString() string + func (c Attributes) String() string + type BySourceThenSpecificity []CPE + func (b BySourceThenSpecificity) Len() int + func (b BySourceThenSpecificity) Less(i, j int) bool + func (b BySourceThenSpecificity) Swap(i, j int) + type BySpecificity []Attributes + func (c BySpecificity) Len() int + func (c BySpecificity) Less(i, j int) bool + func (c BySpecificity) Swap(i, j int) + type CPE struct + Attributes Attributes + Source Source + func Merge(a, b []CPE) []CPE + func Must(cpeStr string, source Source) CPE + func New(value string, source Source) (CPE, error) + type Source string + const DeclaredSource + const GeneratedSource + const NVDDictionaryLookupSource + func (c Source) String() string