strings

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package strings contains helpers to perform string manipulation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Truncate added in v0.66.0

func Truncate(str string, maxWidth int) string

func TruncateFilePaths

func TruncateFilePaths(maxIdealWidth, maxWidth int, path ...string) (map[string]string, int)

TruncateFilePaths truncates the given file paths to conform to the given "ideal" width and returns the shortened paths by replacing the middle parts of paths with "...", ex: bundle1/.../a/b/policy.rego

Types

This section is empty.

Jump to

Keyboard shortcuts

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