Documentation
¶
Index ¶
- func FormatMemory(memory int) string
- func FormatTime(secs int, precision int) string
- func Len(s string) int
- func Longest(lines []string, minWidth int, padding int) int
- func Pad(text string, length int, char string) string
- func Shift[T any](tokens *[]T) T
- func StrimWidth(str string, start int, width int, trimMarker string) string
- func StripEscapeSequences(text string) string
- func Substring(s string, from int, length int) string
- func TrimWidthBackwards(str string, start int, width int) string
- func Truncate2(text string, width int) string
- func Unshift[T any](tokens *[]T, value T)
- func Width(str string) int
- func Wrap(text string, width int, breakChar string, allowCutUrls bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StrimWidth ¶
TODO: implement
func TrimWidthBackwards ¶
TODO: implement
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.