Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶ added in v0.6.0
type Format int
Format selects how resolved results are rendered on stdout and in the output file.
const ( // FormatText is the default human-friendly streaming output. FormatText Format = iota // FormatJSON buffers results and emits a single JSON array at completion. FormatJSON // FormatCSV streams "subdomain,type,value" rows with a header. // // Note: the JSON format buffers the whole document and therefore does not // stream like text and CSV do. If live JSON piping is ever needed, JSONL // (one JSON object per line) is the streaming-friendly alternative. FormatCSV )
func ParseFormat ¶ added in v0.6.0
ParseFormat converts a flag string into a Format.
type Result ¶ added in v0.6.0
Result is one resolved subdomain and its records, used for structured output.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer synchronises all output. Results go to stdout (and optionally a file); everything else (progress, verbose, errors) goes to stderr.
func New ¶
New returns a Writer. If outWriter is non-nil, resolved domains are also written there. Set simulate to true to tag text result lines as simulated.
func (*Writer) Finish ¶ added in v0.6.0
func (w *Writer) Finish()
Finish flushes any buffered or streamed structured output. It must be called once after the scan completes (before the output file is flushed and closed).
func (*Writer) Progress ¶
Progress writes a progress line to stderr using carriage-return overwrite.
func (*Writer) ProgressDone ¶
func (w *Writer) ProgressDone()
ProgressDone writes the final newline on stderr after progress reporting ends.