licenses

package
v0.0.0-...-c1ed8fc Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

README

Open Source Licenses

Overview

The licenses in this directory are taken from SPDX.

Naming Convention

The name of the file is the same as the identifier on the SPDX website with an extension of .txt. For instance, the "Academic Free License v1.1" license would be in a file called AFL-1.1.txt.

Special variants

Some licenses have special variants. E.g, the Apache-2.0 license has optional sections in it. And some licenses, like GPL-3.0, have a short "header" variant that's included in source files. The full text of the license and each of its special variants will be mapped to the same license. (Though the "header" form shouldn't be used in LICENSE files.)

Header Variants

The name of a license header variant is <identifier>.header.txt. So the GPL-3.0 header variant would be named: GPL-3.0.header.txt.

Optional Text Variants

TBD

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLicenseDir

func ReadLicenseDir() ([]fs.DirEntry, error)

ReadLicenseDir reads directory containing the license files.

func ReadLicenseFile

func ReadLicenseFile(filename string) ([]byte, error)

ReadLicenseFile locates and reads the license archive file. Absolute paths are used unmodified. Relative paths are expected to be in the licenses directory of the licenseclassifier package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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