utils

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TruncateForMinimumPadding

func TruncateForMinimumPadding(str string, width *int, padding int) string

TruncateForMinimumPadding ensures that a string fits into screen space with a given amount of padding, by truncating the string until it fits in the width with the padding when necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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