Overview of SPDX tools-golang packages
mainThe tools-golang repository provides a collection of Go packages designed to facilitate working with SPDX® files. It currently supports SPDX specification versions 2.1, 2.2, and 2.3.
Key packages include:
spdx: Provides an in-memory data model for SPDX document sections.tagvalue: A reader and writer for tag-value format documents.rdf: A reader for RDF format documents.json: A reader and writer for JSON format documents.yaml: A reader and writer for YAML format documents.builder: Builds "empty" SPDX documents (including hashes) based on directory contents.idsearcher: Searches for SPDX short-form IDs and constructs an SPDX document.licensediff: Compares concluded licenses between files in two different packages.reporter: Generates basic license count reports from an SPDX document.spdxlib: A collection of utility functions for in-memory SPDX document manipulation.utils: General utility functions supporting the other packages.
Note: This library does not support SPDX versions prior to v2.1.