Documentation ¶ Index ¶ func TruncateForMinimumPadding(str string, width *int, padding int) string 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. Source Files ¶ View all Source files truncate.go Click to show internal directories. Click to hide internal directories.