display

package
v0.0.0-...-7099703 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emoji

func Emoji(emoji string) string

Emoji turns the text title into an emoticon

func Faint

func Faint(faint string) string

Faint returns faint in dimmed markings

func Indent

func Indent(line string) string

Indent adds a fixed left padding to the line

func Secondary

func Secondary(secondary string, a ...any) string

Secondary returns secondary in a passive cloud

func Section

func Section(section SectionF) string

Section builds a section into a string

func Title

func Title(title string) string

Title returns title in a stable section purple

Types

type SectionF

type SectionF struct {
	Icon   string   // Icon contains the title for the section emoji
	Header string   // Header is the main text of a section
	Body   []string // Body provides additional details to a section
}

SectionF contains information for a section

Jump to

Keyboard shortcuts

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