clifmt

package
v0.0.0-...-5998bd7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Align

func Align(s string)

Align prints strings with space padding to align line ends (fixed width) also crops the content to add '...' at the end if too long (must have a space at the end)

func Color

func Color(color byte, text string, bold ...bool) string

Color returns a bash-formatted string representing the string @text with the color code @color and in bold if @bold (1 optional argument) is set to true

func DisplaySize

func DisplaySize(s string) int

DisplaySize returns the real size escaping special characters

func Info

func Info(s ...string) string

Info returns a blue info ASCII sign. If a string is given as argument, it will print it after the info sign

func Title

func Title(s string)

Title prints a formatted title (auto-indexed from local counted)

func Warn

func Warn(s ...string) string

Warn returns a red warning ASCII sign. If a string is given as argument, it will print it after the warning sign

Types

This section is empty.

Jump to

Keyboard shortcuts

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