Documentation
¶
Index ¶
Constants ¶
View Source
const LicenseFilePrefix = "file://"
Variables ¶
This section is empty.
Functions ¶
func SPDXLicenseID ¶
SPDXLicenseID maps a license name to its SPDX identifier.
func SPDXLicenseIDByURL ¶
SPDXLicenseIDByURL maps a license URL to its SPDX identifier. An unresolved URL returns ("", false). All case values are lowercase because the input is lowercased before comparison.
func SplitLicenses ¶
SplitLicenses splits a license string into individual license names. It handles separators like ",", "or", "and" as standalone words (not when followed by "later" which is part of a version specification).
Types ¶
type LicenseFileNames ¶
type LicenseFileNames struct{}
LicenseFileNames is the set of license file name stems that qualify as license files.
func (LicenseFileNames) Contains ¶
func (LicenseFileNames) Contains(stem string) bool
Contains reports whether stem is a known license file name stem.
type LicenseFinding ¶
type LicenseFinding struct {
Findings findings
}
LicenseFinding is the result of classifying a license file.
Click to show internal directories.
Click to hide internal directories.