spdx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.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