MCPcopy Index your code
hub / github.com/expr-lang/expr / fdump

Function fdump

internal/spew/dump.go:453–468  ·  view source on GitHub ↗

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

(cs *ConfigState, w io.Writer, a ...interface{})

Source from the content-addressed store, hash-verified

451// fdump is a helper function to consolidate the logic from the various public
452// methods which take varying writers and config states.
453func fdump(cs *ConfigState, w io.Writer, a ...interface{}) {
454 for _, arg := range a {
455 if arg == nil {
456 w.Write(interfaceBytes)
457 w.Write(spaceBytes)
458 w.Write(nilAngleBytes)
459 w.Write(newlineBytes)
460 continue
461 }
462
463 d := dumpState{w: w, cs: cs}
464 d.pointers = make(map[uintptr]int)
465 d.dump(reflect.ValueOf(arg))
466 d.w.Write(newlineBytes)
467 }
468}
469
470// Fdump formats and displays the passed arguments to io.Writer w. It formats
471// exactly the same as Dump.

Callers 6

FdumpMethod · 0.85
DumpMethod · 0.85
SdumpMethod · 0.85
FdumpFunction · 0.85
SdumpFunction · 0.85
DumpFunction · 0.85

Calls 2

dumpMethod · 0.95
WriteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…