examples/ directory

Directories

PathSynopsis
examples/10-jsonloaderThis example demonstrates loading an SPDX JSON document from disk into memory, and then logging some attributes to the console.
examples/11-yamltotv
examples/12-tvtoyamlThis example demonstrates loading an SPDX tag-value file from disk into memory, and re-saving it to a different json file on disk.
examples/13-yamlloaderThis example demonstrates loading an SPDX YAML document from disk into memory, and then logging some attributes to the console.
examples/1-load
examples/2-load-save
examples/3-build
examples/4-search
examples/5-reportThis example demonstrates loading an SPDX tag-value file from disk into memory, generating a basic report listing counts of the concluded licenses for its files, and printing the report to standard output.
examples/6-licensediffThis example demonstrates loading two SPDX tag-value files from disk into memory, and generating a diff of the concluded licenses for Files in Packages with matching IDs in each document.
examples/7-rdfloaderSPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later Run project: go run exampleRDFLoader.go ../sample-docs/rdf/SPDXRdfExample-v2.2.spdx.rdf
examples/8-jsontotvThis example demonstrates loading an SPDX json from disk into memory, and then re-saving it to a different file on disk in tag-value format .
examples/9-tvtojsonThis example demonstrates loading an SPDX tag-value file from disk into memory, and re-saving it to a different json file on disk.
Version
v0.5.5 (latest)
Published
Jun 17, 2024
Platform
linux/amd64
Last checked
3 weeks ago

Tools for package owners.