eval

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package eval provides a common evaluator for templated expressions, that may make requests to remote services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator struct {
	Funcs  template.FuncMap
	Engine engine.Interface
}

Evaluator is a service that provides common functions for most of the consumers for evaluating go template expressions.

func (*Evaluator) Evaluate

func (s *Evaluator) Evaluate(ctx context.Context, expr string, data any) (string, error)

Evaluate evaluates the provided expression with the given data.

Jump to

Keyboard shortcuts

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