spdxlicenses

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 0 Imported by: 1

Documentation

Overview

Spdxlicenses package provides functions to get licenses, deprecated licenses, and exceptions. These are auto-generated and should not be modified directly. Licenses are generated from the SPDX official machine readable license list.

In addition, this package includes a function to return license ranges for sequential licenses and ranges including modifiers (i.e. -only, -or-later).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeprecated

func GetDeprecated() []string

GetDeprecated returns a slice of deprecated license IDs.

func GetExceptions

func GetExceptions() []string

GetExceptions returns a slice of exception license IDs.

func GetLicenses

func GetLicenses() []string

GetLicenses returns a slice of active license IDs.

func LicenseRanges

func LicenseRanges() [][][]string

licenseRanges returns a list of license ranges.

Ranges are organized into groups (referred to as license groups) of the same base license (e.g. GPL). Groups have sub-groups of license versions (referred to as the range) where each member is considered to be the same version (e.g. {GPL-2.0, GPL-2.0-only}). The sub-groups are in ascending order within the license group, such that the first sub-group is considered to be less than the second sub-group, and so on. (e.g. {{GPL-1.0}, {GPL-2.0, GPL-2.0-only}} implies {GPL-1.0} < {GPL-2.0, GPL-2.0-only}).

Types

This section is empty.

Jump to

Keyboard shortcuts

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