spdx

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 3 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

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