celfn

package
v0.0.0-...-810d26b Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package celfn contains the implementations of Celsius' default CEL helper functions. It is an internal package; consumers reach them via celsius.DefaultEnv().

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains() cel.FunctionOpt

Contains is a binary string-contains predicate.

func HashInt

func HashInt() cel.FunctionOpt

HashInt is the int overload of hash.

func HashString

func HashString() cel.FunctionOpt

HashString CRC32-hashes a string and returns the result modulo the second argument (when used as the two-arg overload registered as `hash`).

func HashUint

func HashUint() cel.FunctionOpt

HashUint is the uint overload of hash.

func MD5

func MD5() cel.FunctionOpt

MD5 hashes a string to its 32-char lowercase hex MD5 digest.

func Rand

func Rand() cel.FunctionOpt

Rand returns a pseudo-random double in [0,1).

func Replace

func Replace() cel.FunctionOpt

Replace performs strings.ReplaceAll.

func ToStr

func ToStr() cel.FunctionOpt

ToStr stringifies an int / uint / double.

Types

This section is empty.

Jump to

Keyboard shortcuts

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