Documentation
¶
Overview ¶
This package contains full license list from SPDX It may be regenerated (wget and mule required)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LicenseInfo ¶
type LicenseInfo struct {
ID string `json:"licenseId"`
Name string `json:"name"`
Text string `json:"licenseText"`
Deprecated bool `json:"isDeprecatedLicenseId"`
OSIApproved bool `json:"isOsiApproved"`
SeeAlso []string `json:"seeAlso"`
}
LicenseInfo is a single software license.
Basic descriptions are documented in the fields below. For a full description of the fields, see the official SPDX specification here: https://github.com/spdx/license-list-data/blob/master/accessingLicenses.md
func LicenseByID ¶
func LicenseByID(id string) (LicenseInfo, bool)
type LicenseList ¶
type LicenseList struct {
// Version is the raw version string of the license list.
Version string `json:"licenseListVersion"`
// Licenses is the list of known licenses.
Licenses []LicenseInfo `json:"licenses"`
}
Click to show internal directories.
Click to hide internal directories.