MCPcopy Create free account
hub / github.com/cel-expr/cel-go / StringsVersion

Function StringsVersion

ext/strings.go:361–366  ·  view source on GitHub ↗

StringsVersion configures the version of the string library. The version limits which functions are available. Only functions introduced below or equal to the given version included in the library. If this option is not set, all functions are available. See the library documentation to determine w

(version uint32)

Source from the content-addressed store, hash-verified

359// If the documentation does not state which version a function was introduced, it can
360// be assumed to be introduced at version 0, when the library was first created.
361func StringsVersion(version uint32) StringsOption {
362 return func(lib *stringLib) *stringLib {
363 lib.version = version
364 return lib
365 }
366}
367
368// StringsValidateFormatCalls validates type-checked ASTs to ensure that string.format() calls have
369// valid formatting clauses and valid argument types for each clause.

Calls

no outgoing calls