prettytable

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 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
y or Y : Canonical URL