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.43.0
- Published
- Jul 29, 2022
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 39 minutes ago –
Tools for package owners.