type clauseImpl …
func clauseForType(argType ref.Type) (clauseImpl, error) { … }
func formatList(arg ref.Val, locale string) (string, error) { … }
func formatMap(arg ref.Val, locale string) (string, error) { … }
func quoteForCEL(refVal ref.Val, unquotedValue string) string { … }
func FormatString(arg ref.Val, locale string) (string, error) { … }
func formatDecimal(arg ref.Val, locale string) (string, error) { … }
func matchLanguage(locale string) (language.Tag, error) { … }
func makeMatcher(locale string) (language.Matcher, error) { … }
type stringFormatter …
func (c *stringFormatter) String(arg ref.Val, locale string) (string, error) { … }
func (c *stringFormatter) Decimal(arg ref.Val, locale string) (string, error) { … }
func (c *stringFormatter) Fixed(precision *int) func(ref.Val, string) (string, error) { … }
func (c *stringFormatter) Scientific(precision *int) func(ref.Val, string) (string, error) { … }
func (c *stringFormatter) Binary(arg ref.Val, locale string) (string, error) { … }
func (c *stringFormatter) Hex(useUpper bool) func(ref.Val, string) (string, error) { … }
func (c *stringFormatter) Octal(arg ref.Val, locale string) (string, error) { … }
type stringFormatValidator …
func (stringFormatValidator) Name() string { … }
func (stringFormatValidator) Configure(config cel.MutableValidatorConfig) error { … }
func (stringFormatValidator) Validate(env *cel.Env, _ cel.ValidatorConfig, a *ast.AST, iss *cel.Issues) { … }
func getErrorExprID(id int64, err error) int64 { … }
func matchConstantFormatStringWithListLiteralArgs(a *ast.AST) ast.ExprMatcher { … }
type stringFormatChecker …
func (c *stringFormatChecker) String(arg ref.Val, locale string) (string, error) { … }
func (c *stringFormatChecker) Decimal(arg ref.Val, locale string) (string, error) { … }
func (c *stringFormatChecker) Fixed(precision *int) func(ref.Val, string) (string, error) { … }
func (c *stringFormatChecker) Scientific(precision *int) func(ref.Val, string) (string, error) { … }
func (c *stringFormatChecker) Binary(arg ref.Val, locale string) (string, error) { … }
func (c *stringFormatChecker) Hex(useUpper bool) func(ref.Val, string) (string, error) { … }
func (c *stringFormatChecker) Octal(arg ref.Val, locale string) (string, error) { … }
func (c *stringFormatChecker) Arg(index int64) (ref.Val, error) { … }
func (c *stringFormatChecker) Size() int64 { … }
func (c *stringFormatChecker) typeOf(id int64) *cel.Type { … }
func (c *stringFormatChecker) verifyTypeOneOf(id int64, validTypes ...*cel.Type) bool { … }
func (c *stringFormatChecker) verifyString(sub ast.Expr) (bool, int64) { … }
func binaryFormatError(id int64, badType string) error { … }
func decimalFormatError(id int64, badType string) error { … }
func fixedPointFormatError(id int64, badType string) error { … }
func hexFormatError(id int64, badType string) error { … }
func octalFormatError(id int64, badType string) error { … }
func scientificFormatError(id int64, badType string) error { … }
func stringFormatError(id int64, badType string) error { … }
type formatError …
func newFormatError(id int64, msg string, args ...any) error { … }
func (e formatError) Error() string { … }
func (e formatError) Is(target error) bool { … }
type stringArgList …
func (c *stringArgList) Arg(index int64) (ref.Val, error) { … }
func (c *stringArgList) Size() int64 { … }
type formatStringInterpolator …
type formatListArgs …
func parseFormatString(formatStr string, callback formatStringInterpolator, list formatListArgs, locale string) (string, error) { … }
func parseAndFormatClause(formatStr string, val ref.Val, callback formatStringInterpolator, list formatListArgs, locale string) (int, string, error) { … }
func parseFormattingClause(formatStr string, callback formatStringInterpolator) (int, clauseImpl, error) { … }
func parsePrecision(formatStr string) (int, *int, error) { … }
func isASCIIDigit(r rune) bool { … }
type parseFormatError …
func newParseFormatError(msg string, wrapped error) error { … }
func (e parseFormatError) Error() string { … }
func (e parseFormatError) Is(target error) bool { … }
func (e parseFormatError) Unwrap() error { … }
const runtimeID …