Skip to content

Commit 1f1d40d

Browse files
ysmoody
authored and
y
committed
should output to stderr
1 parent dd03395 commit 1f1d40d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.golangci.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ linters:
1414
- err113
1515
- nlreturn
1616
- wsl
17-
18-
# Deprecated ones:
19-
- execinquery
20-
- gomnd
21-
- exportloopref
17+
- tenv
2218

2319
issues:
2420
exclude-files:

pkg/utils/utils.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
package utils
22

3-
import "fmt"
3+
import (
4+
"fmt"
5+
"os"
6+
)
47

58
func Println(a ...interface{}) {
6-
_, _ = fmt.Println(a...) //nolint: forbidigo
9+
_, _ = fmt.Fprintln(os.Stderr, a...)
710
}

0 commit comments

Comments
 (0)