export

package
Version: v0.0.0-...-2d0df81 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSV

type CSV struct {
	FileName string
	Comma    rune
	UseCRLF  bool
}

CSV exports response data as CSV streaming file

func (*CSV) Export

func (e *CSV) Export(exports chan interface{}) error

Export exports response data as CSV streaming file

type Exporter

type Exporter interface {
	Export(exports chan interface{}) error
}

Exporter interface is for extracting data to external resources. Export functions should wait for new data from exports chan.

type JSON

type JSON struct {
	FileName   string
	EscapeHTML bool
}

JSON exports response data as JSON

func (*JSON) Export

func (e *JSON) Export(exports chan interface{}) error

Export exports response data as JSON

type JSONLine

type JSONLine struct {
	FileName   string
	EscapeHTML bool
	Prefix     string
	Indent     string
}

JSONLine exports response data as JSON streaming file

func (*JSONLine) Export

func (e *JSONLine) Export(exports chan interface{}) error

Export exports response data as JSON streaming file

type PrettyPrint

type PrettyPrint struct{}

PrettyPrint logs exported data to console as pretty printed

func (*PrettyPrint) Export

func (*PrettyPrint) Export(exports chan interface{})

Export logs exported data to console as pretty printed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL