output

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVFormatter

type CSVFormatter struct{}

CSVFormatter writes comma-separated values with a header row.

func (*CSVFormatter) Write

func (c *CSVFormatter) Write(w io.Writer, results []Result, target string, timestamp time.Time, meta Meta) error

type Formatter

type Formatter interface {
	Write(w io.Writer, results []Result, target string, timestamp time.Time, meta Meta) error
}

Formatter writes results to an io.Writer.

func Get

func Get(format string) (Formatter, error)

Get returns the Formatter for the given format ID.

type JSONFormatter

type JSONFormatter struct{}

JSONFormatter writes structured JSON output.

func (*JSONFormatter) Write

func (j *JSONFormatter) Write(w io.Writer, results []Result, target string, timestamp time.Time, meta Meta) error

type MDFormatter

type MDFormatter struct{}

MDFormatter writes a GitHub-flavored Markdown table.

func (*MDFormatter) Write

func (m *MDFormatter) Write(w io.Writer, results []Result, target string, timestamp time.Time, meta Meta) error

type Meta

type Meta struct {
	SourcesUsed      []string
	WildcardDetected bool
}

Meta carries run-level metadata for structured formatters.

type Result

type Result struct {
	Domain   string
	Source   string
	Resolves *bool
	New      *bool
	Wildcard bool
}

Result holds a single discovered domain with optional annotations.

type TextFormatter

type TextFormatter struct{}

TextFormatter writes one domain per line.

func (*TextFormatter) Write

func (t *TextFormatter) Write(w io.Writer, results []Result, target string, timestamp time.Time, meta Meta) error

Jump to

Keyboard shortcuts

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