spdx

package
v0.0.0-...-55a61f8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateLicense

func ValidateLicense(license string) error

ValidateLicense implements license validation for SPDX 2.1 License Expressions as described in Appendix IV of https://spdx.org/spdx-specification-21-web-version

An error is returned if the license string is not conforming this spec.

Note that the "license-ref" part of the spec is not supported

Types

type Scanner

type Scanner struct {
	*bufio.Scanner
}

func NewScanner

func NewScanner(r io.Reader) *Scanner

Jump to

Keyboard shortcuts

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