cpe

package
v0.84.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 53

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(c CPE) string

func ValidateString

func ValidateString(cpeStr string) error

Types

type BySpecificity

type BySpecificity []wfn.Attributes

func (BySpecificity) Len

func (c BySpecificity) Len() int

func (BySpecificity) Less

func (c BySpecificity) Less(i, j int) bool

func (BySpecificity) Swap

func (c BySpecificity) Swap(i, j int)

type CPE

type CPE = wfn.Attributes

func Merge

func Merge(a, b []CPE) (result []CPE)

func Must

func Must(cpeStr string) CPE

Must returns a CPE or panics if the provided string is not valid

func New

func New(cpeStr string) (CPE, error)

New will parse a formatted CPE string and return a CPE object. Some input, such as the existence of whitespace characters is allowed, however, a more strict validation is done after this sanitization process.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL