purl

package
v2.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package purl provides Package URL (PURL) parsing and validation functionality for handling package identifiers in SBOM documents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PURL

type PURL string

PURL represents a Package URL that provides a universal way to identify and locate software packages across package managers and repositories.

func NewPURL

func NewPURL(prl string) PURL

NewPURL creates a new PURL instance from the provided string. It does not perform validation; use Valid() method to check format compliance.

func (PURL) String

func (p PURL) String() string

func (PURL) Valid

func (p PURL) Valid() bool

Valid checks whether the PURL string conforms to the Package URL specification. It returns true if the PURL can be successfully parsed by the packageurl-go library.

Jump to

Keyboard shortcuts

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