writer

package
v0.0.0-...-ba1c585 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package writer provides functions for formatting query results.

TODO(ivanpi): Export as VDL formatter library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormattingWriter

type FormattingWriter interface {
	Write(columnNames []string, rs syncbase.ResultStream) error
}

func NewCSVWriter

func NewCSVWriter(w io.Writer, delimiter string) FormattingWriter

func NewJSONWriter

func NewJSONWriter(w io.Writer) FormattingWriter

func NewTableWriter

func NewTableWriter(w io.Writer) FormattingWriter

type Justification

type Justification int
const (
	Unknown Justification = iota
	Left
	Right
)

Jump to

Keyboard shortcuts

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