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

Function FormatPrimitive

sup/formatter.go:816–820  ·  view source on GitHub ↗
(typ super.Type, bytes scode.Bytes)

Source from the content-addressed store, hash-verified

814}
815
816func FormatPrimitive(typ super.Type, bytes scode.Bytes) string {
817 var b strings.Builder
818 formatPrimitive(&b, typ, bytes)
819 return b.String()
820}
821
822func formatPrimitive(b *strings.Builder, typ super.Type, bytes scode.Bytes) {
823 switch typ := typ.(type) {

Callers 4

mapKeyFunction · 0.92
formatValueFunction · 0.92
encodePrimitiveMethod · 0.92

Calls 2

formatPrimitiveFunction · 0.85
StringMethod · 0.65

Tested by 1