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

Function newFormatter

internal/spew/format.go:394–398  ·  view source on GitHub ↗

newFormatter is a helper function to consolidate the logic from the various public methods which take varying config states.

(cs *ConfigState, v interface{})

Source from the content-addressed store, hash-verified

392// newFormatter is a helper function to consolidate the logic from the various
393// public methods which take varying config states.
394func newFormatter(cs *ConfigState, v interface{}) fmt.Formatter {
395 fs := &formatState{value: v, cs: cs}
396 fs.pointers = make(map[uintptr]int)
397 return fs
398}
399
400/*
401NewFormatter returns a custom formatter that satisfies the fmt.Formatter

Callers 3

NewFormatterFunction · 0.85
NewFormatterMethod · 0.85
convertArgsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…