license

package
v0.0.0-...-31e3ec6 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identifier

type Identifier struct {
	Identifier string `json:"identifier"`
	Scheme     string `json:"scheme"`
}

type License

type License struct {
	Id           string       `json:"id"`
	Identifiers  []Identifier `json:"identifiers"`
	Links        []Link       `json:"links"`
	Name         string       `json:"name"`
	OtherNames   []OtherName  `json:"other_names"`
	SupersededBy *string      `json:"superseded_by"`
	Keywords     []string     `json:"keywords"`
	Texts        []Text       `json:"text"`
}

type Licenses

type Licenses []License

func LoadLicensesFiles

func LoadLicensesFiles(path string) (Licenses, error)

func (Licenses) GetIdMap

func (licenses Licenses) GetIdMap() map[string]License

func (Licenses) GetIds

func (licenses Licenses) GetIds() []string

func (Licenses) GetTagMap

func (licenses Licenses) GetTagMap() map[string][]License
type Link struct {
	Note *string `json:"note"`
	URL  string  `json:"url"`
}

type OtherName

type OtherName struct {
	Name string  `json:"name"`
	Note *string `json:"note"`
}

type Text

type Text struct {
	MediaType string `json:"media_type"`
	Title     string `json:"title"`
	URL       string `json:"url"`
}

Jump to

Keyboard shortcuts

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