--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Are you using os/exec to call a sub process and wishing to discard that child's output?
Stderr is where your program writes data to, so unless you are writing to stderr there is nothing to discard.
Are you using os/exec to call a sub process and wishing to discard that child's output?
For the literal question being asked, there's alwaysos.Stderr = ioutil.Discard