writer

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 19 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSVToString

func CSVToString(data interface{}) ([]byte, error)

func CSVToStringHeader

func CSVToStringHeader(data interface{}) ([]byte, error)

func HTMLToString

func HTMLToString(data interface{}) ([]byte, error)

func NewOutputWriters added in v1.4.5

func NewOutputWriters(output string, outType int) (io.Writer, error)

func OutputToString

func OutputToString(out *result.Result) string

Types

type CSVWriter

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

func NewCSVWriter

func NewCSVWriter(path string, data interface{}) (*CSVWriter, error)

func (*CSVWriter) Close

func (c *CSVWriter) Close() error

func (*CSVWriter) Write

func (c *CSVWriter) Write(b []byte) (int, error)

type HTMLWriter

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

func NewHTMLWriter

func NewHTMLWriter(path string) (*HTMLWriter, error)

func (*HTMLWriter) Close

func (h *HTMLWriter) Close() error

func (*HTMLWriter) Write

func (h *HTMLWriter) Write(b []byte) (int, error)

type OutputWriter

type OutputWriter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewOutputWriter

func NewOutputWriter() (*OutputWriter, error)

func (*OutputWriter) AddWriters added in v1.4.2

func (w *OutputWriter) AddWriters(writers ...io.Writer)

func (*OutputWriter) Close added in v1.4.2

func (w *OutputWriter) Close()

Close closes the output writers

func (*OutputWriter) Output added in v1.4.5

func (w *OutputWriter) Output(outputResult chan *result.Result, outType int)

func (*OutputWriter) Write

func (w *OutputWriter) Write(data []byte)

Write writes the data taken as input using only the writer(s) with that name.

func (*OutputWriter) WriteString added in v1.4.2

func (w *OutputWriter) WriteString(data string)

WriteString writes the string taken as input using only

Jump to

Keyboard shortcuts

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