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

Function formatValue

sio/csvio/writer.go:115–121  ·  view source on GitHub ↗
(typ super.Type, bytes scode.Bytes)

Source from the content-addressed store, hash-verified

113}
114
115func formatValue(typ super.Type, bytes scode.Bytes) string {
116 // Avoid SUP decoration.
117 if typ.ID() < super.IDTypeComplex {
118 return sup.FormatPrimitive(super.TypeUnder(typ), bytes)
119 }
120 return sup.FormatValue(super.NewValue(typ, bytes))
121}
122
123func fieldNamesEqual(a, b []super.Field) bool {
124 return slices.EqualFunc(a, b, func(a, b super.Field) bool {

Callers 1

WriteMethod · 0.85

Calls 5

FormatPrimitiveFunction · 0.92
TypeUnderFunction · 0.92
FormatValueFunction · 0.92
NewValueFunction · 0.92
IDMethod · 0.65

Tested by

no test coverage detected