examples/ directory
Directories ΒΆ
Path | Synopsis |
---|---|
examples/10-jsonloader | This example demonstrates loading an SPDX JSON document from disk into memory, and then logging some attributes to the console. |
examples/11-yamltotv | |
examples/12-tvtoyaml | This 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-yamlloader | This 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-report | This 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-licensediff | This 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-rdfloader | SPDX-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-jsontotv | This 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-tvtojson | This 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.