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

Method startColorPrimitive

sup/formatter.go:701–709  ·  view source on GitHub ↗
(typ super.Type)

Source from the content-addressed store, hash-verified

699}
700
701func (f *Formatter) startColorPrimitive(typ super.Type) {
702 if !f.colorDisabled {
703 c, ok := colors[super.TypeUnder(typ)]
704 if !ok {
705 c = color.Reset
706 }
707 f.startColor(c)
708 }
709}
710
711func (f *Formatter) startColor(code color.Code) {
712 if !f.colorDisabled {

Callers 1

formatValueMethod · 0.95

Calls 2

startColorMethod · 0.95
TypeUnderFunction · 0.92

Tested by

no test coverage detected