render

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnNames

func ColumnNames(columns map[string]int) []string

func Columns

func Columns(inp []map[string]interface{}) map[string]int

func Format added in v0.5.0

func Format(inp interface{}) string

func LabelExtractor

func LabelExtractor(columns []string) func(map[string]interface{}) string

func NumericColumn

func NumericColumn(columns []string) string

Types

type RenderState

type RenderState struct {
	Messages *[]map[string]interface{}
	Meta     *map[string]interface{}
	Flush    func() error
}

func NewConnectedRenderState

func NewConnectedRenderState(flush func() error) *RenderState

func (RenderState) Process

func (state RenderState) Process(inp map[string]interface{})

Jump to

Keyboard shortcuts

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