printer

package
v0.0.0-...-e1fd52c Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TablePrint

func TablePrint(table TablePrinter)

func TreePrint

func TreePrint(node TreeNode)

Types

type ColumnAlignment

type ColumnAlignment = int
const (
	CenterAlign ColumnAlignment = iota
	RightAlign
	LeftAlign
)

type TablePrinter

type TablePrinter interface {
	RowCount() int
	ColumnCount() int
	Value(row, column int) string
	Ipad() int
	ColumnAlignment(column int) ColumnAlignment
}

type TreeNode

type TreeNode interface {
	Render() string
	IsLeaf() bool
	Children() []TreeNode
}

Jump to

Keyboard shortcuts

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