Too bad for perf that a... is evaluated
(t string, s string, a ...interface{})
| 122 | |
| 123 | // Too bad for perf that a... is evaluated |
| 124 | func Error(t string, s string, a ...interface{}) { |
| 125 | errorsMapMutex.Lock() |
| 126 | errors++ |
| 127 | nb, _ := errorsMap[t] |
| 128 | errorsMap[t] = nb + 1 |
| 129 | errorsMapMutex.Unlock() |
| 130 | if outputLevel >= 0 { |
| 131 | fmt.Printf(s, a...) |
| 132 | } |
| 133 | } |
| 134 | func Info(s string, a ...interface{}) { |
| 135 | if outputLevel >= 1 { |
| 136 | fmt.Printf(s, a...) |
no test coverage detected
searching dependent graphs…