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

Function StringsLocale

ext/strings.go:347–352  ·  view source on GitHub ↗

StringsLocale configures the library with the given locale. The locale tag will be checked for validity at the time that EnvOptions are configured. If this option is not passed, string.format will behave as if en_US was passed as the locale. If StringsVersion is greater than or equal to 4, this opt

(locale string)

Source from the content-addressed store, hash-verified

345//
346// If StringsVersion is greater than or equal to 4, this option is ignored.
347func StringsLocale(locale string) StringsOption {
348 return func(sl *stringLib) *stringLib {
349 sl.locale = locale
350 return sl
351 }
352}
353
354// StringsVersion configures the version of the string library.
355//

Callers 2

TestStringFormatFunction · 0.85
TestBadLocaleFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestStringFormatFunction · 0.68
TestBadLocaleFunction · 0.68