MCPcopy Create free account
hub / github.com/brimdata/super / FormatValue

Method FormatValue

sup/formatter.go:69–77  ·  view source on GitHub ↗
(val super.Value)

Source from the content-addressed store, hash-verified

67}
68
69func (f *Formatter) FormatValue(val super.Value) string {
70 // We reset tyepdefs so named types are emitted with their
71 // definition at first use in each record according to the
72 // left-to-right DFS order. We could make this more efficient
73 // by putting a record number/nonce in the map but SUP
74 // is already intended to be the low performance path.
75 f.typedefs = make(map[string]*super.TypeNamed)
76 return f.Format(val)
77}
78
79func FormatValue(val super.Value) string {
80 return NewFormatter(0, true, nil).Format(val)

Callers 3

MarshalCustomMethod · 0.80
WriteSUPMethod · 0.80
WriteMethod · 0.80

Calls 1

FormatMethod · 0.95

Tested by

no test coverage detected