licenses

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchFullLicense

func FetchFullLicense(key *string)

func Fill_License

func Fill_License(name *string, year *string) *string

func GetLicenseList

func GetLicenseList() *[]TrimmedLicense

Types

type FullLicense

type FullLicense struct {
	Key            string   `json:"key"`
	Name           string   `json:"name"`
	Spdx_Id        string   `json:"spdx_id"`
	Url            string   `json:"url"`
	Node_Id        string   `json:"node_id"`
	Html_Url       string   `json:"html_url"`
	Description    string   `json:"description"`
	Implementation string   `json:"implementation"`
	Permissions    []string `json:"permissions"`
	Conditions     []string `json:"conditions"`
	Limitations    []string `json:"limitations"`
	Body           string   `json:"body"`
	Featured       bool     `json:"featured"`
}

type License

type License struct {
	Key     string `json:"key"`
	Name    string `json:"name"`
	Spdx_Id string `json:"spdx_id"`
	Url     string `json:"url"`
	Node_Id string `json:"node_id"`
}

type TrimmedLicense

type TrimmedLicense struct {
	Key  string `json:"key"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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