StringsMaxPrecision configures the maximum precision for floating-point format clauses. If not set, the default is 100 for version >= 5, and no limit for earlier versions.
(limit int)
| 379 | // |
| 380 | // If not set, the default is 100 for version >= 5, and no limit for earlier versions. |
| 381 | func StringsMaxPrecision(limit int) StringsOption { |
| 382 | return func(lib *stringLib) *stringLib { |
| 383 | lib.maxPrecision = limit |
| 384 | return lib |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | // CompileOptions implements the Library interface method. |
| 389 | func (lib *stringLib) CompileOptions() []cel.EnvOption { |
nothing calls this directly
no outgoing calls
no test coverage detected