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

Function FormatValue

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

Source from the content-addressed store, hash-verified

77}
78
79func FormatValue(val super.Value) string {
80 return NewFormatter(0, true, nil).Format(val)
81}
82
83func String(p any) string {
84 if typ, ok := p.(super.Type); ok {

Callers 15

typeDeclMethod · 0.92
exprMethod · 0.92
NewLiteralFunction · 0.92
valueToExprFunction · 0.92
TestMarshalBSUPFunction · 0.92
TestMarshalSliceFunction · 0.92
TestIPTypeFunction · 0.92
TestUnmarshalRecordFunction · 0.92
TestMarshalInterfaceFunction · 0.92
TestMarshalArrayFunction · 0.92
TestNumbersFunction · 0.92
TestCustomRecordFunction · 0.92

Calls 2

NewFormatterFunction · 0.85
FormatMethod · 0.45

Tested by 15

TestMarshalBSUPFunction · 0.74
TestMarshalSliceFunction · 0.74
TestIPTypeFunction · 0.74
TestUnmarshalRecordFunction · 0.74
TestMarshalInterfaceFunction · 0.74
TestMarshalArrayFunction · 0.74
TestNumbersFunction · 0.74
TestCustomRecordFunction · 0.74
TestSuperValuesFunction · 0.74
TestBytesFunction · 0.74