Strings returns a cel.EnvOption to configure extended functions for string manipulation. As a general note, all indices are zero-based. # CharAt Introduced at version: 0 (cost support in version 5) Returns the character at the given position. If the position is negative, or greater than the lengt
(options ...StringsOption)
| 317 | // |
| 318 | // <string>.format(<list>) -> <string> |
| 319 | func Strings(options ...StringsOption) cel.EnvOption { |
| 320 | s := &stringLib{ |
| 321 | version: math.MaxUint32, |
| 322 | } |
| 323 | for _, o := range options { |
| 324 | s = o(s) |
| 325 | } |
| 326 | return cel.Lib(s) |
| 327 | } |
| 328 | |
| 329 | type stringLib struct { |
| 330 | locale string |