format

package
v0.0.0-...-7e94697 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthorStyle = lipgloss.NewStyle().
	Bold(true).
	Background(lipgloss.Color("8")).
	Foreground(lipgloss.Color("0"))

Functions

func FormatHtml2Text

func FormatHtml2Text(htmlText string, width, leftPadding int) string

FormatHtml2Text converts an html text into a plaintext one

func FormatText

func FormatText(plainText string, width, leftPadding int) string

func GreenTextIt

func GreenTextIt(text string) string

GreenTextIt makes green the lines in `text` that start with ">"

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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