exceptionmaker

package
v0.0.0-...-12bc48b Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDocument

func MakeDocument() *spdx.Document2_1

MakeDocument creates an SPDX Document2_1 entry to which Packages will be added.

func MakePackageFromRow

func MakePackageFromRow(row []interface{}, rowNum int) (*spdx.Package2_1, error)

MakePackageFromRow creates an SPDX Package2_1 entry based on the contents of the spreadsheet row. It modifies and cleans up the data before returning the row.

Types

type PackageSubset

type PackageSubset struct {
	Pkg     string `json:"package"`
	License string `json:"license"`
	Comment string `json:"comment"`
}

PackageSubset includes just a small subset of Package fields for JSON output.

func ConvertSPDXToJSONPackageSubset

func ConvertSPDXToJSONPackageSubset(doc *spdx.Document2_1) []PackageSubset

ConvertSPDXToJSONPackageSubset does what it says on the tin.

Jump to

Keyboard shortcuts

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