output

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package output writes scan output to a file or, when no path is given, to stdout. Writer wraps the destination, handling creation and closing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer handles writing results to console or file

func NewWriter

func NewWriter(outputPath string) (*Writer, error)

NewWriter creates a new writer If outputPath is empty, writes to stdout

func (*Writer) Close

func (w *Writer) Close() error

Close closes the writer if it's a file

func (*Writer) Write

func (w *Writer) Write(content string) error

Write writes content to the configured destination

Jump to

Keyboard shortcuts

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