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.
Click to show internal directories.
Click to hide internal directories.