terminal

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPrinter = &Printer{}

Functions

func Bold added in v0.32.0

func Bold(text string) string

Bold generates a bold text for the terminal using the default terminal printer

func Link(text, url string) string

Link generates a link in that can be displayed in the terminal using the default terminal printer

Types

type Printer added in v0.48.0

type Printer struct {
	Plain bool // Don't use terminal formatting
}

Printer formats things to the terminal

func (*Printer) Bold added in v0.48.0

func (t *Printer) Bold(text string) string

Bold generates a bold text for the terminal

func (t *Printer) Link(text, url string) string

Link generates a link in that can be displayed in the terminal https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

Jump to

Keyboard shortcuts

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