How to disable logging

yourbasic.org/golang

To turn off all output from a log.Logger, set the output destination to ioutil.Discard, a writer on which all calls succeed without doing anything.

log.SetOutput(ioutil.Discard)