librejs

package
v0.0.0-...-8359c59 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLicenseToJSFile

func SetLicenseToJSFile(fileContents []byte, license License) []byte

Types

type License

type License int64
const (
	AGPL3 License = iota
	Apache2
	Artistic2
	BSD2Clause
	BSD3Clause
	BSL10
	CCBY10
	CCBY20
	CCBY25
	CCBY30
	CCBY40
	CCBYSA10
	CCBYSA20
	CCBYSA25
	CCBYSA30
	CCBYSA40
	CC010
	CPAL10
	EPL10
	Expat
	FreeBSD
	GNUAllPermissive
	GPL2
	GPL3
	ISC
	LGPL21
	LGPL30
	MPL20
	PublicDomain
	UNLICENSE
	UPL
	WTFPL
	X11
	XFree8611
)

type LicenseInfo

type LicenseInfo struct {
	Name         string
	Identifier   string
	CanonicalUrl string
}

func GetLicenseInfo

func GetLicenseInfo(license License) LicenseInfo

Jump to

Keyboard shortcuts

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