csv

package
v0.0.0-...-8e825b5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

type Template struct {
	Comma   rune // default ','; e.g. use '\t' for tab-separated values
	UseCRLF bool // use "\r\n" end-of-line character instead of "\n"
}

Template implements interface sql2http.Template by writing with csv.Encode the SQL query rows to the io.Writer. Each individual SQL query result set is separated by an empty line.

func (*Template) ContentType

func (t *Template) ContentType() string

func (*Template) Execute

func (t *Template) Execute(wr io.Writer, data interface{}) error

Jump to

Keyboard shortcuts

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