MCPcopy
hub / github.com/rs/zerolog / consoleDefaultFormatErrFieldName

Function consoleDefaultFormatErrFieldName

console.go:525–529  ·  view source on GitHub ↗
(noColor bool)

Source from the content-addressed store, hash-verified

523}
524
525func consoleDefaultFormatErrFieldName(noColor bool) Formatter {
526 return func(i interface{}) string {
527 return colorize(fmt.Sprintf("%s=", i), colorCyan, noColor)
528 }
529}
530
531func consoleDefaultFormatErrFieldValue(noColor bool) Formatter {
532 return func(i interface{}) string {

Callers 1

writeFieldsMethod · 0.85

Calls 1

colorizeFunction · 0.85

Tested by

no test coverage detected