Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlobToSPDX

func BlobToSPDX(bytes []byte) (*spdx.Document, error)

func LoadAllowedLicenses

func LoadAllowedLicenses(licenses []string) map[string]struct{}

Types

type PackageLicense

type PackageLicense struct {
	PackageName    string
	PackageLicense string
}

func FilterPackageLicenses

func FilterPackageLicenses(packageLicenses []PackageLicense, allowedLicenses map[string]struct{}) []PackageLicense

func GetPackageLicenses

func GetPackageLicenses(doc spdx.Document) []PackageLicense

Jump to

Keyboard shortcuts

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