str

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package str are print to terminal display and colour functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Piped

func Piped() bool

Piped detects whether the program text is being piped to another operating system command or sent to stdout.

func Progress

func Progress(name string, count, total int) float64

Progress returns the count of total remaining as a percentage.

func Sec

func Sec(s string) string

Sec prints a secondary notice.

func Truncate

func Truncate(text string, length int) string

Truncate shortens a string to length characters.

func Warn

func Warn(s string) string

Warn prints a warning notice.

func X

func X() string

X returns a red ✗ cross mark.

func Y

func Y() string

Y returns a green ✓ tick mark.

Types

This section is empty.

Jump to

Keyboard shortcuts

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