StdLib returns an EnvOption for the standard library of CEL functions and macros.
(opts ...StdLibOption)
| 139 | |
| 140 | // StdLib returns an EnvOption for the standard library of CEL functions and macros. |
| 141 | func StdLib(opts ...StdLibOption) EnvOption { |
| 142 | lib := &stdLibrary{} |
| 143 | for _, o := range opts { |
| 144 | lib = o(lib) |
| 145 | } |
| 146 | return Lib(lib) |
| 147 | } |
| 148 | |
| 149 | // stdLibrary implements the Library interface and provides functional options for the core CEL |
| 150 | // features documented in the specification. |