examples

command
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL