StdLib returns an EnvOption for the standard library of CEL functions and macros.
(opts ...StdLibOption)
| 128 | |
| 129 | // StdLib returns an EnvOption for the standard library of CEL functions and macros. |
| 130 | func StdLib(opts ...StdLibOption) EnvOption { |
| 131 | lib := &stdLibrary{} |
| 132 | for _, o := range opts { |
| 133 | lib = o(lib) |
| 134 | } |
| 135 | return Lib(lib) |
| 136 | } |
| 137 | |
| 138 | // stdLibrary implements the Library interface and provides functional options for the core CEL |
| 139 | // features documented in the specification. |