MCPcopy
hub / github.com/expr-lang/expr / NewFormatter

Function NewFormatter

internal/spew/format.go:417–419  ·  view source on GitHub ↗

* NewFormatter returns a custom formatter that satisfies the fmt.Formatter interface. As a result, it integrates cleanly with standard fmt package printing functions. The formatter is useful for inline printing of smaller data types similar to the standard %v format specifier. The custom formatte

(v interface{})

Source from the content-addressed store, hash-verified

415Printf, Println, or Fprintf.
416*/
417func NewFormatter(v interface{}) fmt.Formatter {
418 return newFormatter(&Config, v)
419}

Callers 1

convertArgsFunction · 0.85

Calls 1

newFormatterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…