No reason to create your own type for a common io.Writer when one exists in the io/ioutil package.
import (
"log"
"io/ioutil"
)
func init() {
log.SetOutput(ioutil.Discard)
}
No reason to create your own type for a common io.Writer when one exists in the io/ioutil package.
import (
"log"
"io/ioutil"
)
func init() {
log.SetOutput(ioutil.Discard)
}