expr

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

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

func ConvertToCELValue(value any) ref.Val

ConvertToCELValue converts a Go value to a CEL value. Handles common YAML types and returns null for unsupported types.

func CreateEnvironment

func CreateEnvironment() (*cel.Env, error)

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.

Jump to

Keyboard shortcuts

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