text

package
v1.1.2-0...-b3be18b Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinLines

func JoinLines(texts ...string) string

func Line

func Line(width int, cells ...Cell) string

Types

type Cell

type Cell struct {
	Text  string
	Width int
	Align TextAlign
}

type TextAlign

type TextAlign int
const (
	LeftAlign TextAlign = iota
	RightAlign
)

func (TextAlign) String

func (ta TextAlign) String() string

Jump to

Keyboard shortcuts

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