mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-21 15:17:01 +00:00
Replace uses of ioutil
ioutil package was deprecated in Go 1.16, replace all uses with their respective replacements. This patch was generated with a combination of `gofmt -r`, `eg`, and manually (for `ioutil.ReadDir`).
This commit is contained in:
@@ -4,7 +4,6 @@ package maillog
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log/syslog"
|
||||
"net"
|
||||
"sync"
|
||||
@@ -148,7 +147,7 @@ type nopCloser struct {
|
||||
func (nopCloser) Close() error { return nil }
|
||||
|
||||
// Default logger, used in the following top-level functions.
|
||||
var Default *Logger = New(nopCloser{ioutil.Discard})
|
||||
var Default *Logger = New(nopCloser{io.Discard})
|
||||
|
||||
// Listening logs that the daemon is listening on the given address.
|
||||
func Listening(a string) {
|
||||
|
||||
Reference in New Issue
Block a user