We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 245146a commit 21dca3eCopy full SHA for 21dca3e
output.go
@@ -22,7 +22,6 @@ package terminal
22
import (
23
"fmt"
24
"io"
25
- "io/ioutil"
26
"os"
27
)
28
@@ -108,7 +107,7 @@ func NewOutput(w io.Writer, formatter *Formatter) *Output {
108
107
}
109
110
func (o Output) IsQuiet() bool {
111
- return o.writer == ioutil.Discard
+ return o.writer == io.Discard
112
113
114
func (o Output) Fd() uintptr {
@@ -230,7 +229,7 @@ func setupLogLevelStyle(formatter *Formatter) {
230
229
func init() {
231
DefaultStdout = RemapOutput(defaultOutputs())
232
DiscardedOutput = &Output{
233
- ioutil.Discard,
+ io.Discard,
234
NewFormatter(),
235
236
0 commit comments