formatter

package
v0.0.0-...-ca8cd6b Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Truncate

func Truncate(text string, length int) string

Types

type Colors

type Colors struct {
	// contains filtered or unexported fields
}

func SystemColors

func SystemColors() Colors

func (*Colors) Green

func (c *Colors) Green(s string) string

func (*Colors) Red

func (c *Colors) Red(s string) string

func (*Colors) Yellow

func (c *Colors) Yellow(s string) string

type Table

type Table struct {
	// contains filtered or unexported fields
}

func NewTable

func NewTable(output io.Writer) Table

func (*Table) EndTable

func (t *Table) EndTable() string

func (*Table) TableRow

func (t *Table) TableRow(fields ...string) string

Jump to

Keyboard shortcuts

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