lib

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package lib contains all of the core functionality of the application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	Afs            *afero.Afero // Afero file system abstraction for file operations.
	OutputFileName string       // Name of the output file.
	OutputFolder   string       //The folder in which to save the generated file.
	OutputFormat   string       // Desired output format.
}

Converter represents a utility for file conversion.

func NewConverter

func NewConverter() *Converter

NewConverter creates a new instance of the Converter with default settings. It initializes the Afs field with an Afero instance using the default operating system file system.

Returns:

  • A pointer to the newly created Converter instance.

func (*Converter) Convert

func (c *Converter) Convert(filename string) error

Convert executes the conversion of the provided CycloneDX file to a KissBOM

Jump to

Keyboard shortcuts

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