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

Method Fixed

ext/formatting.go:752–752  ·  view source on GitHub ↗

Fixed takes an int pointer representing precision (or nil if none was given) and returns a function operating in a similar manner to String and Decimal, taking a ref.Val and locale and returning the appropriate string. A closure is returned so precision can be set without needing an additional funct

(*int)

Source from the content-addressed store, hash-verified

750 // ref.Val and locale and returning the appropriate string. A closure is returned
751 // so precision can be set without needing an additional function call/configuration.
752 Fixed(*int) func(ref.Val, string) (string, error)
753
754 // Scientific functions identically to Fixed, except the string returned from the closure
755 // is expected to be in scientific notation.

Callers 1

parseFormattingClauseFunction · 0.65

Implementers 4

stringFormatterV2ext/formatting_v2.go
stringFormatCheckerV2ext/formatting_v2.go
stringFormatterext/formatting.go
stringFormatCheckerext/formatting.go

Calls

no outgoing calls

Tested by

no test coverage detected