nilsafe

package
v3.24.71 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Library

func Library(opts ...Option) cel.EnvOption

Library returns a cel.EnvOption that enables nil-safe evaluation. Missing variables, null field access, missing map keys, and out-of-bounds list indices return null instead of errors. Real errors like division by zero, type conversion failures, and regex errors are preserved.

Types

type Option

type Option func(*config)

func WithZeroValues

func WithZeroValues() Option

Jump to

Keyboard shortcuts

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