cpeuri

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertEmptyToAny

func ConvertEmptyToAny(cpe *cpeutils.CPE)

ConvertEmptyToAny is used to fill in empty fields with ANY (i.e., "*"). This is primarily used when CPE URI binding string is the input.

func GetCPEStructFromString

func GetCPEStructFromString(s string) (cpeutils.CPE, error)

func IsCPEFormattedString

func IsCPEFormattedString(s string) bool

IsCPEFormattedString determines if a string looks like it is a CPE bound as 2.3 formatted string.

func IsCPEURIString

func IsCPEURIString(s string) bool

IsCPEURIString determines if a string looks like it is a CPE bound as 2.2 URI

func RemoveSlashes added in v0.10.0

func RemoveSlashes(s string) string

RemoveSlashes - remove backslashes from a string

func ToStruct

func ToStruct(s string) (*cpeutils.CPE, error)

func UnbindCPEFormattedString

func UnbindCPEFormattedString(str string) (cpeutils.CPE, error)

func UnbindCPEURIString

func UnbindCPEURIString(uri string) (cpeutils.CPE, error)

UnbindCPEURIString is based on the pseudocode algorithm found in 6.1.3.2 of NISTIR 7695

Types

This section is empty.

Jump to

Keyboard shortcuts

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