prettytable

package
Version: v0.0.0-...-422233c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TabWidth = 8

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignmentType

type AlignmentType uint8
const (
	AlignLeft AlignmentType = iota
	AlignCenter
	AlignRight
)

type PrettyTable

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

func NewPrettyTable

func NewPrettyTable(fields []string) *PrettyTable

func NewPrettyTableWithTryTermWidth

func NewPrettyTableWithTryTermWidth(fields []string, tryTermWidth bool) *PrettyTable

func (*PrettyTable) GetString

func (this *PrettyTable) GetString(fields [][]string) string

func (*PrettyTable) MaxLineWidth

func (this *PrettyTable) MaxLineWidth(w int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL