Documentation
¶
Overview ¶
Package spdx contains license information from SPDX.
Index ¶
Constants ¶
View Source
const LicenseListVersion = "v3.23"
LicenseListVersion is the version of the SPDX license list.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type License ¶
type License struct { // ID is the SPDX ID of the license. ID string `json:"licenseId,omitempty"` // Name is the full license name. Name string `json:"name,omitempty"` // Reference is the URL that contains the reference documentation for the license. Reference string `json:"reference,omitempty"` // ReferenceNumber is the license reference number. ReferenceNumber int `json:"referenceNumber,omitempty"` // DetsilsURL is the URL that contains extra details on the license. DetailsURL string `json:"detailsUrl,omitempty"` // Deprecated indicates whether the license ID is deprecated. Deprecated bool `json:"isDeprecatedLicenceId,omitempty"` // SellAlso are additional URLs where the licensecan be found in use. SeeAlso []string `json:"seeAlso,omitempty"` // OSIApproved indicates whether the complies with the Open Source Definition and is approved // by the Open Source Initiative. OSIApproved bool `json:"isOsiApproved,omitempty"` }
License is a SPDX license.
func AllLicenses ¶ added in v0.2.0
func AllLicenses() []License
AllLicenses returns a slice of all Licenses.
This slice will be sorted by License ID.
func LicenseForID ¶
LicenseForID returns the License for the ID.
The input ID is case-insensitive, that is any casing of the ID will result in the correct License.
Click to show internal directories.
Click to hide internal directories.