helper

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatMemory

func FormatMemory(memory int) string

TODO: implement

func FormatTime

func FormatTime(secs int, precision int) string

TODO: implement

func Len

func Len(s string) int

func Longest

func Longest(lines []string, minWidth int, padding int) int

TODO: implement

func Pad

func Pad(text string, length int, char string) string

TODO: implement

func PadEnd added in v0.5.0

func PadEnd(text string, length int, char byte) string

func PadStart added in v0.5.0

func PadStart(text string, length int, char byte) string

func Shift

func Shift[T any](tokens *[]T) T

func StrimWidth

func StrimWidth(str string, start int, width int, trimMarker string) string

TODO: implement

func StripEscapeSequences

func StripEscapeSequences(text string) string

TODO: implement

func Substring

func Substring(s string, from int, length int) string

func TrimWidthBackwards

func TrimWidthBackwards(str string, start int, width int) string

TODO: implement

func Truncate2

func Truncate2(text string, width int) string

TODO: implement (remove 2)

func Unshift

func Unshift[T any](tokens *[]T, value T)

func Width

func Width(str string) int

func Wrap

func Wrap(text string, width int, breakChar string, allowCutUrls bool) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳