purl

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package purl converts Go package details into a Go PackageURL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakePackageURL

func MakePackageURL(name string, version string) *purl.PackageURL

MakePackageURL returns a package URL following the purl Golang spec:

  • There is no default package repository: this is implied in the namespace using the go get command conventions.
  • The namespace and name must be lowercased.

See: https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#golang

Types

This section is empty.

Jump to

Keyboard shortcuts

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