ListsMaxRangeSize sets the maximum number of elements lists.range() will allocate. If not set, the default is 1,000,000. Setting this to zero disables the limit (not recommended).
(size int64)
| 266 | // allocate. If not set, the default is 1,000,000. Setting this to zero |
| 267 | // disables the limit (not recommended). |
| 268 | func ListsMaxRangeSize(size int64) ListsOption { |
| 269 | return func(lib *listsLib) *listsLib { |
| 270 | lib.maxRangeSize = size |
| 271 | return lib |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | // CompileOptions implements the Library interface method. |
| 276 | func (lib listsLib) CompileOptions() []cel.EnvOption { |
nothing calls this directly
no outgoing calls
no test coverage detected