package strings
import "github.com/open-policy-agent/opa/internal/strings"
Package strings contains helpers to perform string manipulation
Index ¶
Functions ¶
func TruncateFilePaths ¶
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
Source Files ¶
- Version
- v0.59.0
- Published
- Nov 30, 2023
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 39 minutes ago –
Tools for package owners.