strings

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 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