clio

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderBarBuffer    = 5
	DefaultHeaderWidth = 64
	DefaultKVWidth     = 32
	DefaultIndent      = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

type Printer struct {
	HeaderWidth int
	KVWidth     int
	Indent      int
	LeftIndent  string
}

func NewPrinter

func NewPrinter(headerWidth int, kvWidth int, indent int) *Printer

func (*Printer) PrintHeader

func (p *Printer) PrintHeader(title string)

func (*Printer) PrintKV

func (p *Printer) PrintKV(key string, value interface{})

func (*Printer) PrintKVIndent

func (p *Printer) PrintKVIndent(key string, value interface{})

Jump to

Keyboard shortcuts

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