spdx

package
v2.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package spdx provides functionality for parsing and evaluating SPDX license expressions.

Index

Constants

This section is empty.

Variables

View Source
var IDs = map[string]bool{}/* 712 elements not displayed */

Functions

func Satisfies

func Satisfies(license models.License, allowlist []string) (bool, error)

Satisfies checks if the given license expression is satisfied by the allowed licenses

func Unrecognized

func Unrecognized(licenses []string) (unrecognized []string)

Unrecognized filters licenses for non-spdx identifiers. The "unknown" string is also treated as a valid identifier.

Types

This section is empty.

Jump to

Keyboard shortcuts

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