Documentation
¶
Overview ¶
This program demonstrates using the sbomgen library to generate a CycloneDX SBOM and extract build file dependencies from it.
Usage:
go run examples/main.go [directory]
If no directory is provided, it scans pkg/sbomgen/testdata which contains a sample Cargo.lock fixture.
The program prints the generated SBOM JSON, then lists all manifest build files found in the SBOM via GetBuildFileTrees.
Click to show internal directories.
Click to hide internal directories.