Documentation
¶
Overview ¶
Package expr provides CEL (Common Expression Language) functionality for evaluating expressions against file paths and YAML content.
This package creates CEL environments with custom functions for: - File path operations (pathBase, pathDir, pathExt) - YAML content extraction (yamlPath)
CEL expressions have access to variables:
- `files` (list<string>): All file paths in directory
- `dir` (string): The directory path being processed
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToCELValue ¶
ConvertToCELValue converts a Go value to a CEL value. Handles common YAML types and returns null for unsupported types.
func CreateEnvironment ¶
CreateEnvironment creates a CEL environment with functions for filepath operations. These functions provide direct access to Go's filepath package functionality.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.