type ValidationResultType … const good … const bad … const warn … type color … const red … const green … const yellow … const white … func colorize(s string, c color) string { … } type StreamReporter … // Report reports validation result in different color depending on the result type. func (dr *StreamReporter) Report(key, value string, resultType ValidationResultType) error { … } var DefaultReporter …