writer

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 13 Imported by: 1

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 OutputToString

func OutputToString(out *result.Result, nocolor bool) 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 {
}

func NewOutputWriter

func NewOutputWriter() *OutputWriter

func (*OutputWriter) Write

func (o *OutputWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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