Library provides a collection of EnvOption and ProgramOption values used to configure a CEL environment for a particular use case or with a related set of functionality. Note, the ProgramOption values provided by a library are expected to be static and not vary between calls to Env.Program(). If th
| 52 | // between calls to Env.Program(). If there is a need for such dynamic configuration, prefer to |
| 53 | // configure these options outside the Library and within the Env.Program() call directly. |
| 54 | type Library interface { |
| 55 | // CompileOptions returns a collection of functional options for configuring the Parse / Check |
| 56 | // environment. |
| 57 | CompileOptions() []EnvOption |
| 58 | |
| 59 | // ProgramOptions returns a collection of functional options which should be included in every |
| 60 | // Program generated from the Env.Program() call. |
| 61 | ProgramOptions() []ProgramOption |
| 62 | } |
| 63 | |
| 64 | // SingletonLibrary refines the Library interface to ensure that libraries in this format are only |
| 65 | // configured once within the environment. |
no outgoing calls
no test coverage detected