output

package
v0.0.0-...-b2a609f Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVOutput

type CSVOutput struct {
	Headers []string
	// contains filtered or unexported fields
}

func NewCSVOutput

func NewCSVOutput(conf *config.Config) *CSVOutput

func (*CSVOutput) Close

func (out *CSVOutput) Close() error

func (*CSVOutput) WriteRow

func (out *CSVOutput) WriteRow(row map[string]string) error

type JSONOutput

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

func NewJSONOutput

func NewJSONOutput(conf *config.Config) *JSONOutput

func (*JSONOutput) Close

func (out *JSONOutput) Close() error

func (*JSONOutput) WriteRow

func (out *JSONOutput) WriteRow(row map[string]string) error

type Output

type Output interface {
	WriteRow(map[string]string) error
	Close() error
}

Jump to

Keyboard shortcuts

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