print

package
v0.0.0-...-6d74526 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBytes

func FormatBytes(s int64) string

FormatBytes produces a human readable representation of an SI size. e.g. Bytes(82854982) -> 82.85 MB

Types

type Printer

type Printer interface {
	Print(Result)
}

Printer represents an interface that prints a result.

func New

func New(out io.Writer, format string) Printer

New returns a new Printer which prints to out corresponding to format.

type Result

type Result interface {
	Info() *athena.QueryExecution
	Rows() [][]string
}

Result represents an interface that holds information of a query execution and its results.

Jump to

Keyboard shortcuts

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